Skip to content

Added Chapter 6 Common archives to build-common-archs.yml. Better han… #4

Added Chapter 6 Common archives to build-common-archs.yml. Better han…

Added Chapter 6 Common archives to build-common-archs.yml. Better han… #4

Workflow file for this run

name: 'Build Site'
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
echo "Building version ${{github.ref_name}}"
bash ./build-site.sh ${{github.ref_name}}
- name: Upload Release Artifact
id: upload
uses: softprops/action-gh-release@v1
with:
files: site.tar.gz
- name: Webhook
uses: joelwmale/webhook-action@2.3.2
with:
url: ${{ secrets.WEBHOOK_URL }}
body: '{"file": "${{ steps.upload.outputs.url }}/site.tar.gz", "release": "${{github.ref}}", "secret": "${{ secrets.WEBHOOK_KEY }}"}'