diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecfdf07..6df2f40 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + TAG_NAME: $(date +%Y_%m_%d_%H_%M) permissions: contents: write steps: @@ -22,12 +24,16 @@ jobs: - name: Test run: | echo ${{ github.sha }} - echo $(date +%Y_%m_%d_%H_%M) + echo $TAG_NAME + - name: Create Tag + run: | + git tag $TAG_NAME + git push origin $TAG_NAME - uses: ncipollo/release-action@v1 with: allowUpdates: True omitBody: True commit: ${{ github.sha }} - tag: $(date +%Y_%m_%d_%H_%M) + tag: $TAG_NAME artifacts: "Makefile" token: ${{ secrets.GITHUB_TOKEN }}