Skip to content

Commit

Permalink
feature: support artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdcdev committed Sep 3, 2024
1 parent 98d1817 commit 7454697
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GitVersion
Expand Down
16 changes: 16 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,28 @@ inputs:
github-token:
description: "GitHub Token"
required: true
artifacts:
description: "An optional set of paths representing artifacts to upload to the release. This may be a single path or a comma delimited list of paths (or globs)"
required: false
default: ""
outputs:
changelog:
description: "Changelog"
value: ${{ steps.changelog.outputs.changelog }}
runs:
using: "composite"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create tag
shell: bash
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git tag -fa ${{ inputs.version }} -m "Release ${{ inputs.version }}"
git push --force origin ${{ inputs.version }}
- uses: jcdcdev/jcdcdev.Github.GenerateChangelog@main
id: changelog
with:
Expand All @@ -28,6 +43,7 @@ runs:
with:
allowUpdates: true
omitNameDuringUpdate: true
artifacts: ${{ inputs.artifacts }}
token: ${{ inputs.github-token }}
name: ${{ inputs.version }}
tag: ${{ inputs.version }}
Expand Down

0 comments on commit 7454697

Please sign in to comment.