Merge pull request #1801 from randommm/patch-2 #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Live Website | |
on: | |
push: | |
branches: | |
- live | |
workflow_dispatch: | |
jobs: | |
website: | |
runs-on: ubuntu-22.04 | |
container: | |
image: pivotalrabbitmq/website-packaging | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate next website | |
id: generate | |
run: | | |
mkdir generated | |
./generate ./generated www | |
cp "conf/robots.txt-next" ./generated/robots.txt | |
mkdir -p ci/worker/public | |
cp -r ./generated/* ci/worker/public/ | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
workingDirectory: ci/worker |