Skip to content

Update Workflows

Update Workflows #1

name: Deploy Website - Staging
permissions:
contents: write
on:
pull_request:
branches:
- main
paths:
- .github/**
- website/**
jobs:
# Build the project to ensure it works. Also to get the binaries.
build-website:
uses: ./.github/workflows/build-base.yml
with:
zig-version: ${{ vars.WS_TARGET_ZIG_VERSION }}
get-submodules: true
target-os: Linux
github-artifact-name: website-build
artifact-output-path: website/zig-out
working-directory: website
# Publish microzig
publish-website:
uses: ./.github/workflows/publish-base.yml

Check failure on line 27 in .github/workflows/publish-website-staging.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-website-staging.yml

Invalid workflow file

error parsing called workflow ".github/workflows/publish-website-staging.yml" -> "./.github/workflows/publish-base.yml" : You have an error in your yaml syntax on line 9
needs: build-website
concurrency:
group: publish
cancel-in-progress: false
with:
github-artifact-name: website-build
source-path: /
secrets:
target-path: "${{ secrets.DEPLOY_WS_ROOT_DATA_PATH }}/staging/pulls/${{ github.event.number }}/"
ssh-key: ${{ secrets.DEPLOY_WS_PRIVATE_KEY }}
host: ${{ secrets.DEPLOY_WS_HOST }}
port: ${{ secrets.DEPLOY_WS_PORT }}
user: ${{ secrets.DEPLOY_WS_USER }}
pr-comment:
runs-on: ubuntu-latest
needs: publish-website
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
with:
message: |
Heya!
You can check out a preview of your PR at [${{ vars.WEBSITE_STAGING_HOST }}/pulls/${{ github.event.number }}/](${{ vars.WEBSITE_STAGING_HOST }}/pulls/${{ github.event.number }}/)!