Skip to content

Try to upload release before artifact #76

Try to upload release before artifact

Try to upload release before artifact #76

Workflow file for this run

name: "Build and Deploy"
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build Site
run: nix-shell --run "shake"
env:
NIXPKGS_ALLOW_BROKEN: 1
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
files: "dest/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "dest/"
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1