Skip to content

Commit 3f91b85

Browse files
authored
Update gradle.yml
1 parent 8422f20 commit 3f91b85

1 file changed

Lines changed: 11 additions & 23 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,15 @@ jobs:
2525
uses: gradle/gradle-build-action@v2
2626
- name: Run build with Gradle Wrapper
2727
run: gradle build
28-
- name: version
29-
run: echo "::set-output name=version::$(./bin/azblogfilter --version)"
30-
id: version
31-
- name: release
32-
uses: actions/create-release@v1
33-
id: create_release
34-
with:
35-
draft: false
36-
prerelease: false
37-
release_name: ${{ steps.version.outputs.version }}
38-
tag_name: ${{ github.ref }}
3928
env:
40-
GITHUB_TOKEN: ${{ github.token }}
41-
42-
43-
- name: upload artifact
44-
uses: actions/upload-release-asset@v1
45-
env:
46-
GITHUB_TOKEN: ${{ github.token }}
47-
with:
48-
upload_url: ${{ steps.create_release.outputs.upload_url }}
49-
asset_path: ./build/libs/DiscordBot.jar
50-
asset_name: DiscordBot.jar
51-
asset_content_type: application/java-archive
29+
USERNAME: ${{secrets.USERNAME}}
30+
TOKEN: ${{secrets.TOKEN}}
31+
RELEASE_VERSION: ${{env.RELEASE_VERSION}}
32+
- name: Upload artifacts
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: build-artifacts
36+
path: |
37+
build/libs/*.jar
38+
build/reports/tests/test/index.html
39+
build/reports/jacoco/test/html/index.html

0 commit comments

Comments
 (0)