Skip to content

Commit

Permalink
updated workflow to deploy artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
linxOD committed Aug 26, 2024
1 parent ebf3b93 commit 41a26b5
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ on:
- cron: "20 */12 * * *"
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 @@ -44,11 +56,16 @@ 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: 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 41a26b5

Please sign in to comment.