Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sifferman committed Sep 6, 2023
1 parent 898b0e2 commit ba9fafc
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
TAG_NAME: $(date +%Y_%m_%d_%H_%M)
permissions:
contents: write
steps:
Expand All @@ -21,19 +19,15 @@ jobs:
# - name: Build
# run: |
# make
- name: Test
run: |
echo ${{ github.sha }}
echo "TAG_NAME=$(date +%Y_%m_%d_%H_%M)" >> "$GITHUB_ENV"
- name: Create Tag
run: |
git tag ${{ env.TAG_NAME }}
git push origin ${{ env.TAG_NAME }}
- uses: ncipollo/release-action@v1
with:
allowUpdates: True
omitBody: True
commit: ${{ github.sha }}
tag: ${{ env.TAG_NAME }}
artifacts: "Makefile"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Tag
run: |
echo "TAG_NAME=$(date +%Y.%m.%d.%H.%M)" >> "$GITHUB_ENV"
git tag ${{ env.TAG_NAME }}
git push origin ${{ env.TAG_NAME }}
- uses: ncipollo/release-action@v1
with:
allowUpdates: True
omitBody: True
tag: ${{ env.TAG_NAME }}
artifacts: ".gitignore"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ba9fafc

Please sign in to comment.