Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
176f2d4f95 | ||
|
|
f8597e5d82 | ||
|
|
fe7a3cf044 | ||
|
|
7bb51ec6a8 | ||
|
|
d2d156e31b | ||
|
|
5ccad6ae58 | ||
|
|
242ebfa1a9 | ||
|
|
e2d44a752f | ||
|
|
1f3576c787 | ||
|
|
47252f024f | ||
|
|
b752455524 | ||
|
|
8871ea4388 | ||
|
|
38cd5d17e8 | ||
|
|
0a2e4f5dbd | ||
|
|
7f4adaf758 | ||
|
|
1fdee7d04b |
+18
-18
@@ -19,8 +19,6 @@ env:
|
||||
# You can convert this to a build matrix if you need coverage of multiple configuration types.
|
||||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||
BUILD_CONFIGURATION: Release
|
||||
MYID: id
|
||||
MYURL: url
|
||||
|
||||
permissions: write-all
|
||||
|
||||
@@ -49,21 +47,17 @@ jobs:
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
id: upload
|
||||
with:
|
||||
name: Release
|
||||
path: ${{ github.workspace }}\Digital Clock\bin\Release\*
|
||||
retention-days: 1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
MYID: ${{ steps.artifact-upload-step.outputs.artifact-id }}
|
||||
MYURL: ${{ steps.artifact-upload-step.outputs.artifact-url }}
|
||||
|
||||
- name: Output MYURL
|
||||
run: echo 'Artifact URL is ${{ env.MYURL }}'
|
||||
|
||||
- name: Output artifact URL test1
|
||||
run: echo 'Artifact URL is ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}'
|
||||
|
||||
- name: Output artifact ID
|
||||
run: echo 'Artifact ID is ${{ steps.upload.outputs.artifact-id }}'
|
||||
|
||||
- name: Output Artifact URL
|
||||
run: echo 'Artifact URL is ${{ steps.upload.outputs.artifact-url }}'
|
||||
|
||||
- name: Create Release
|
||||
uses: actions/create-release@latest
|
||||
@@ -81,7 +75,10 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ env.MYURL }}
|
||||
upload_url: ${{ steps.upload.outputs.artifact-url }}
|
||||
asset_path: ${{ github.workspace }}\Release.zip
|
||||
asset_name: Release.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
@@ -90,9 +87,12 @@ jobs:
|
||||
prerelease: false
|
||||
tag_name: ${{ github.run_number }}
|
||||
body: ${{ github.event.head_commit.message }}
|
||||
files: D:\a\Digital-Clock-in-sharpc\Digital-Clock-in-sharpc\Digital Clock\bin\Release\*
|
||||
files: ${{ github.workspace }}\Digital Clock\bin\Release.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
|
||||
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user