Skip to content

Commit 933a074

Browse files
committed
Compact ts-pages workflow
1 parent a30a548 commit 933a074

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ts-pages.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,25 @@ permissions:
99
pages: write
1010

1111
jobs:
12-
build:
12+
deploy:
1313
runs-on: ubuntu-22.04
1414
environment:
1515
name: github-pages
16+
url: ${{ steps.deployment.outputs.page_url }}
1617
steps:
1718
- name: Download repository
1819
uses: actions/checkout@v4
20+
1921
- name: Build TypeScript
2022
run: tsc
2123
- name: Run custom build script
2224
run: python3 build.py "${{ secrets.SECRET_STRING }}"
25+
2326
- name: Compress & Upload pages artifact
2427
uses: actions/upload-pages-artifact@v3
2528
with:
2629
path: "./www" # Website root
2730

28-
deploy:
29-
runs-on: ubuntu-latest
30-
needs: build
31-
environment:
32-
name: github-pages
33-
url: ${{ steps.deployment.outputs.page_url }}
34-
steps:
3531
- name: Deploy to GitHub Pages
3632
id: deployment
3733
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)