Skip to content

Commit 494aaed

Browse files
Update build.yml
1 parent 30017d0 commit 494aaed

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ jobs:
1616
- name: Checkout Code
1717
uses: actions/checkout@v3
1818

19+
- name: Set Build Tag
20+
id: set_tag
21+
run: |
22+
export TAG="v$(date +'%Y%m%d-%H%M')"
23+
echo "TAG_NAME=$TAG" >> $GITHUB_ENV
24+
echo "tag_name=$TAG" >> $GITHUB_OUTPUT
25+
26+
- name: Set Git Identity
27+
run: |
28+
git config user.name "github-actions[bot]"
29+
git config user.email "github-actions[bot]@users.noreply.github.com"
30+
31+
- name: Create Git Tag
32+
run: |
33+
git tag $TAG_NAME
34+
git push origin $TAG_NAME
35+
1936
- name: Make Script Executable
2037
run: chmod +x ./build_adventurecoin_ubuntu.sh
2138

@@ -26,8 +43,12 @@ jobs:
2643
run: |
2744
echo -e "2\ny\ny\ny\ny\ny" | ./build_adventurecoin_ubuntu.sh
2845
29-
- name: Upload Binaries
30-
uses: actions/upload-artifact@v4
46+
- name: Upload to GitHub Release
47+
uses: softprops/action-gh-release@v1
3148
with:
32-
name: compiled-wallets
33-
path: compiled_wallets/*
49+
tag_name: ${{ env.TAG_NAME }}
50+
name: AdventureCoin ${{ env.TAG_NAME }}
51+
generate_release_notes: true
52+
files: ./compiled_wallets/*
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)