Skip to content

Commit

Permalink
Switch pages deployment from branch to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed May 13, 2024
1 parent dce2999 commit 7d7166a
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ on:
push:
branches:
- master
workflow_dispatch:

permissions:
contents: write
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -28,10 +35,24 @@ jobs:
pip install wheel
pip install git+https://github.com/spanezz/[email protected]
ssite build --output public
cd public
rm -rf Jenkinsfile dosagelib scripts tests
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
cname: dosage.rocks
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: 'Jenkinsfile,dosagelib,scripts,setup.*,tests,*.ini'
path: public

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 7d7166a

Please sign in to comment.