diff options
author | Beat Hagenlocher | 2024-06-27 18:45:21 +0200 |
---|---|---|
committer | Beat Hagenlocher | 2024-06-27 18:45:27 +0200 |
commit | d3fbb4b0b8305516283276b95b5890c8f65f91dd (patch) | |
tree | f4d1ff4a79a4157b6d11eaa11ec2070b9838ccaf | |
parent | 32fb46b63b549855668e54a57a6ace0372b6b18c (diff) |
Add github pages deployment
-rw-r--r-- | .github/workflows/pages.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..c996a4b --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,61 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Build and Deploy to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # runs every day at 00:42 UTC + # schedule: + # - cron: "42 0 * * *" + # 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 + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + build: + name: Building and Deploying + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: Bogdanp/setup-racket@v1.9 + with: + architecture: 'x64' + distribution: 'full' + variant: 'CS' + version: 'stable' + - uses: actions/cache@v2 + with: + path: | + ~/.cache/racket + ~/.local/share/racket + key: ${{ runner.os }}-racket-current-${{ hashFiles('.racket-version') }} + - run: raco pkg install --auto --skip-installed pollen + - run: raco pollen render + - run: raco pollen reset + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 +
\ No newline at end of file |