Fixed markdown in Regex section (#31) #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Retype powered website to GitHub Pages | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: [master] | |
# 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: Inject custom css and js | |
run: | | |
cat .inject/style.css >> ${{ steps.retypebuild.outputs.retype-output-path }}/resources/css/retype.css | |
cat .inject/code.js >> ${{ steps.retypebuild.outputs.retype-output-path }}/resources/js/retype.js | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.retypebuild.outputs.retype-output-path }} | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |