Skip to content

Commit

Permalink
Add Github Actions for publishing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed Aug 26, 2024
1 parent f74868d commit 929a2b4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'gradle'
- run: ./gradlew build --no-daemon
- uses: actions/upload-pages-artifact@v3
with:
path: web/dist/
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.repository == 'fumiX/sipgator-open'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 929a2b4

Please sign in to comment.