Skip to content

Commit

Permalink
Stop using deprecated actions in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgroot committed Apr 5, 2024
1 parent 150cfd9 commit 90895b6
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,32 +111,17 @@ jobs:
name: distribution
path: build/distributions

- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
- name: Create Release Draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: v${{ github.ref_name }}
draft: true
prerelease: false
- uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/distributions/structurizr-site-generatr-${{ github.ref_name }}.tar.gz
asset_name: structurizr-site-generatr-${{ github.ref_name }}.tar.gz
asset_content_type: application/x-tar
- uses: actions/upload-release-asset@v1.0.2
run: |
gh release create v${{ github.ref_name }} \
--draft \
--title "v${{ github.ref_name }}"
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/distributions/structurizr-site-generatr-${{ github.ref_name }}.zip
asset_name: structurizr-site-generatr-${{ github.ref_name }}.zip
asset_content_type: application/zip
run: gh release upload v${{ github.ref_name }} ./build/distributions/*

publish-example-site:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 90895b6

Please sign in to comment.