Skip to content

Commit

Permalink
First GH deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Sep 17, 2023
1 parent c313929 commit 876769f
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
env:
PAGES_DIR: out
steps:
- name: "Check out the repository"
uses: actions/checkout@v3
Expand All @@ -18,15 +20,17 @@ jobs:
- name: Python Dependencies Install
run: pip install -r requirements.txt
- name: Run script
run: python -m stigaview_static -o out products
run: python -m stigaview_static -o ${{ env.PAGES_DIR }} products
- name: Copy Static Assets
run: cp --verbose -r static/ out/static
run: cp --verbose -r static/ ${{ env.PAGES_DIR }}/static
- name: Publish
uses: cloudflare/pages-action@1
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'stigaview-static'
directory: 'out'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.repository == 'Mab879/stigaview-static' && github.ref == 'refs/heads/master'}}
branch: master
folder: ${{ env.PAGES_DIR }}
repository-name: stigaview/stigaview.github.io
single-commit: true
token: ${{ secrets.CONTENT_PAGES_TOKEN }}
git-config-name: stigaview-publisher
git-config-email: [email protected]
if: ${{ github.repository == 'Mab879/stigaview-static' && github.ref == 'refs/heads/gh_pages_deploy' }}

0 comments on commit 876769f

Please sign in to comment.