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 b67a2c9
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,32 +111,23 @@ jobs:
name: distribution
path: build/distributions

- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact (.tar.gz)
uses: actions/upload-artifact@v4
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 }}
name: structurizr-site-generatr-${{ github.ref_name }}.tar.gz
path: ./build/distributions/structurizr-site-generatr-${{ github.ref_name }}.tar.gz
- name: Upload artifact (.zip)
uses: actions/upload-artifact@v4
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
name: structurizr-site-generatr-${{ github.ref_name }}.zip
path: ./build/distributions/structurizr-site-generatr-${{ github.ref_name }}.zip
- name: Create Release Draft
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 create v${{ github.ref_name }} \
--draft \
--title "v${{ github.ref_name }}"
publish-example-site:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b67a2c9

Please sign in to comment.