Skip to content

Commit 3ca13f9

Browse files
Update go.yml
1 parent 087652e commit 3ca13f9

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/go.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,32 @@ Available Options:
3333
error: Fail the action with an error message
3434
ignore: Do not output any warnings or errors, the action does not fail
3535

36-
if-no-files-found:
36+
if-no-files-found: 0
3737
# Duration after which artifact will expire in days. 0 means using default retention.
3838
Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
3939

4040
retention-days: # optional
4141

42-
- name: Upload to Release Action
42+
- name: Release Upload
4343
# You may pin to the exact commit or the version.
44-
# uses: Shopify/upload-to-release@9942a4c936dab172f7101dcc7dc20528ea949102
45-
uses: Shopify/upload-to-release@v1.0.1
44+
# uses: d1ceward/draft-assets-release-action@f2997b18bb04e00260f1d67c796b04a56ca6ea2e
45+
uses: d1ceward/draft-assets-release-action@v2.0.0
4646
with:
47-
# Artifact name
48-
name: staticsitegenerator
49-
# Path to the file to upload
50-
path: main
51-
# Content type for the file
52-
content-type: # optional, default is application/octet-stream
47+
48+
49+
token: secrets.GITHUB_TOKEN
50+
# A list of files to publish, relative to the repository root.
51+
52+
The files must be specified as a newline-delimited list of paths.
53+
54+
```yaml
55+
with:
56+
files: |
57+
main
5358
54-
repo-token: secrets.GITHUB_TOKEN
59+
```
60+
61+
files:
62+
main
5563

5664

0 commit comments

Comments
 (0)