Skip to content

Commit

Permalink
see if we can make built-apps a release
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplegatecp committed Dec 20, 2023
1 parent 12a8e0e commit be3d9bf
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
Expand Down Expand Up @@ -35,13 +37,21 @@ jobs:
chmod +x ./.github/workflows/builds.sh
./.github/workflows/builds.sh
shell: bash
- name: Run make build and clean and commit newly built apps to github
if: github.event_name != 'pull_request'
- name: Tag
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v')
run: |
git config --global user.name 'Github actions auto build packages'
git config --global user.email '[email protected]'
chmod +x ./.github/workflows/builds.sh
./.github/workflows/builds.sh
git add built_apps/*
git commit -m "Rebuilt apps"
git push
git tag -a v1 -m "v1"
git push origin --tags
shell: bash
- name: Publish
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
# TODO: if any of the build step fails, the release should be deleted.
with:
files: 'built_apps/*'
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

0 comments on commit be3d9bf

Please sign in to comment.