chore(deps): update dependency @argos-ci/cli to v5 - autoclosed #626
Workflow file for this run
This file contains hidden or 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: Website | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "18" | |
| cache: yarn | |
| cache-dependency-path: ./yarn.lock | |
| - uses: actions/cache@v5 | |
| with: | |
| path: .docusaurus | |
| key: docusaurus-main-${{ github.sha }} | |
| restore-keys: | | |
| docusaurus-main- | |
| - name: Install | |
| run: yarn install --frozen-lockfile | |
| - name: Install Playwright browsers | |
| run: yarn playwright install --with-deps chromium | |
| - name: Build | |
| run: yarn build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: build | |
| - name: Take screenshots with Playwright | |
| run: yarn workspace argos screenshot | |
| - name: Upload screenshots to Argos | |
| if: github.repository_owner == 'libretime' | |
| run: yarn workspace argos upload | |
| deploy: | |
| name: Deploy | |
| if: github.ref == 'refs/heads/main' && github.repository_owner == 'libretime' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |