Skip to content

Commit

Permalink
update workflow to publish artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
linxOD committed Aug 27, 2024
1 parent 48d1b96 commit 1f6aa35
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ name: Build and publish
on:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build_pages:
name: Publish Edition as GitHub Pages Website
Expand Down Expand Up @@ -39,12 +51,19 @@ jobs:
- name: Build
run: |
ant -f build_app/ant/build.xml
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: "./html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Preprocess data for Typesense
run: |
ant -f build_app/ant/fixtures.xml
- name: Build Typesense Index
run: |
python build_app/python/make_ts_index.py
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./html
python build_app/python/make_ts_index.py

0 comments on commit 1f6aa35

Please sign in to comment.