mirror of
https://github.com/recloudstream/csdocs.git
synced 2024-08-14 22:46:50 +00:00
Create retype_build.yml
This commit is contained in:
parent
20425d23b8
commit
a2d619b3c9
1 changed files with 43 additions and 0 deletions
43
.github/workflows/retype_build.yml
vendored
Normal file
43
.github/workflows/retype_build.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
name: Publish Retype powered website to GitHub Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: [$default-branch]
|
||||
|
||||
# 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
|
||||
|
||||
- uses: retypeapp/action-github-pages@latest
|
||||
with:
|
||||
update-branch: true
|
||||
|
||||
- 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
|
Loading…
Reference in a new issue