Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsukaHiro authored Jul 27, 2023
1 parent d28e74c commit 7f9bd89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ jobs:
- name: Build RSP
run: 7z\7za.exe a -mx9 -tzip -aoa RSP.zip assets\* credit.txt pack.mcmeta pack.png README.md

- name: Get tag name from ref
shell: bash
run: echo "::set-output name=tag::${{ github.event.repository.updated_at}}"
id: get_tag
- name: Create tag in public repository
run: |
cd ${{github.workspace}}
git tag ${{ github.event.repository.updated_at}}
git tag ${{ steps.get_tag.outputs.tag }}
git push --tags --porcelain
- name: Create Release
Expand All @@ -42,7 +46,7 @@ jobs:
draft: false
prerelease: true
release_name: Build-${{ github.event.repository.updated_at}}
tag_name: ${{ github.event.repository.updated_at}}
tag_name: ${{ steps.get_tag.outputs.tag }}
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit 7f9bd89

Please sign in to comment.