mirror of
https://github.com/dwinkler1/dwinkler1.github.io.git
synced 2026-02-19 22:50:58 -05:00
new build
This commit is contained in:
parent
24043c75a9
commit
74f15f1a67
1 changed files with 16 additions and 6 deletions
22
.github/workflows/static.yml
vendored
22
.github/workflows/static.yml
vendored
|
|
@ -23,14 +23,17 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Single deploy job since we're just deploying
|
# Single deploy job since we're just deploying
|
||||||
deploy:
|
build:
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: nixbuild/nix-quick-install-action@v29
|
||||||
|
- name: nix build
|
||||||
|
run: nix build .
|
||||||
|
- name: Adjust permissions
|
||||||
|
run: |
|
||||||
|
chown -R `id -u`:`id -g` ./result
|
||||||
|
chmod -R a+rwx ./result
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|
@ -38,6 +41,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
# Upload entire repository
|
# Upload entire repository
|
||||||
path: '.'
|
path: '.'
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue