Skip to content

Commit

Permalink
prepare pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 1, 2025
1 parent 34f77d3 commit 168c88d
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/citest.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: citest
name: build & deploy

on:
push:
Expand All @@ -11,11 +11,22 @@ on:
required: false
default: false

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
citest:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
Expand All @@ -27,3 +38,21 @@ jobs:
- name: run build
run: |
make build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist

deploy:
needs: build
runs-on: ubuntu-24.04
# only deploy from master branch
if: github.ref == 'refs/heads/master'
steps:
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 168c88d

Please sign in to comment.