Skip to content

Commit 55c63b6

Browse files
committed
Update GitHub Actions workflow file
1 parent a5d5f55 commit 55c63b6

2 files changed

Lines changed: 41 additions & 46 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 'Gitub Pages'
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'hyperupcall-ci'
8+
pull_request:
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
upload:
22+
runs-on: 'ubuntu-24.04'
23+
steps:
24+
- uses: 'actions/checkout@v4'
25+
- uses: "actions/upload-pages-artifact@v3"
26+
if: ${{ github.ref == 'refs/heads/main' }}
27+
with:
28+
path: '.'
29+
30+
deploy:
31+
name: "Deploy"
32+
runs-on: "ubuntu-24.04"
33+
needs: ["upload"]
34+
if: ${{ github.ref == 'refs/heads/main' }}
35+
environment:
36+
name: "github-pages"
37+
url: "${{ steps.deployment.outputs.page_url }}"
38+
steps:
39+
- name: "Deploy to GitHub Pages"
40+
id: "deployment"
41+
uses: "actions/deploy-pages@v4"

0 commit comments

Comments
 (0)