refactor: viper #5
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 to GitHub Pages | |
on: | |
push: | |
paths: | |
- 'vangen.json' | |
permissions: | |
contents: read | |
id-token: write | |
pages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.22' | |
- name: Install Vangen | |
run: | | |
git clone https://github.com/noble-assets/vangen | |
cd vangen && go install && cd .. | |
rm -rf vangen | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Build Site | |
run: | | |
vangen | |
echo "jester.noble.xyz" > ./vangen/CNAME | |
- name: Upload Artifacts | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./vangen | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |