Skip to content

Commit

Permalink
commit version dist in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Jun 26, 2024
1 parent a3cfe26 commit c410d6a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ jobs:
npm run build
# touch docs/.nojekyll
- name: Get version of inner-app
id: get_version
run: echo "VERSION=$(jq -r '.version' ./inner-app/package.json)" >> $GITHUB_ENV

- name: Commit built dist
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add dist/$VERSION
git commit -m "Add dist build for version $VERSION"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
VERSION: ${{ env.VERSION }}

- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit c410d6a

Please sign in to comment.