Skip to content

Commit

Permalink
fix job dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTiedemann committed Jul 20, 2023
1 parent 6cff2b5 commit 6d4266f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 43 deletions.
38 changes: 37 additions & 1 deletion .github/workflows/pixel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ on:
pull_request:
branches:
- 'main'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
generate:
runs-on: ubuntu-latest
Expand All @@ -24,4 +37,27 @@ jobs:
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: git rev-parse HEAD

# Single deploy job since we're just deploying
deploy:
needs: generate
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: git rev-parse HEAD
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './outputs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
42 changes: 0 additions & 42 deletions .github/workflows/static.yml

This file was deleted.

File renamed without changes.

0 comments on commit 6d4266f

Please sign in to comment.