Skip to content

Commit

Permalink
remove usage of archived GH actions from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danjhd committed Jul 2, 2024
1 parent af8f618 commit 8a1bce8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,15 @@ jobs:
- name: Create Release
id: create_release
uses: actions/create-release@v1
run: |
gh release create ${{ github.run_number }} --title "Release v${{ github.run_number }}" --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Release v${{ github.run_number }}
draft: false
prerelease: false
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
run: |
cp main.yaml template.yaml
gh release upload ${{ github.run_number }} template.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./main.yaml
asset_name: template.yaml
asset_content_type: application/yaml
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ main.yaml
functions/*-pkg.py
*-build.yaml
*-pkg.yaml
.venv/

0 comments on commit 8a1bce8

Please sign in to comment.