csdocs/.github/workflows/retype_build.yml

40 lines
940 B
YAML
Raw Normal View History

2023-01-22 09:12:05 +00:00
name: Publish Retype powered website to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
2023-01-22 09:15:41 +00:00
branches: [master]
2023-01-22 09:12:05 +00:00
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: retypeapp/action-build@latest
id: retypebuild
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{ steps.retypebuild.outputs.retype-output-path }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1