Initial commit #1
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: Deploy static content to Pages | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
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: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Pages | |
uses: actions/[email protected] | |
- name: Install Inkscape | |
run: | | |
sudo add-apt-repository -y ppa:inkscape.dev/stable | |
sudo apt-get -y update | |
sudo apt-get install -y inkscape | |
- name: Build SVGs | |
run: | | |
./build.sh | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
path: 'static/' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |