Skip to content

Commit 8a1bce8

Browse files
committed
remove usage of archived GH actions from workflow
1 parent af8f618 commit 8a1bce8

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,15 @@ jobs:
4646
4747
- name: Create Release
4848
id: create_release
49-
uses: actions/create-release@v1
49+
run: |
50+
gh release create ${{ github.run_number }} --title "Release v${{ github.run_number }}" --generate-notes
5051
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
with:
53-
tag_name: ${{ github.run_number }}
54-
release_name: Release v${{ github.run_number }}
55-
draft: false
56-
prerelease: false
52+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5753

5854
- name: Upload Release Asset
5955
id: upload-release-asset
60-
uses: actions/upload-release-asset@v1
56+
run: |
57+
cp main.yaml template.yaml
58+
gh release upload ${{ github.run_number }} template.yaml
6159
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
with:
64-
upload_url: ${{ steps.create_release.outputs.upload_url }}
65-
asset_path: ./main.yaml
66-
asset_name: template.yaml
67-
asset_content_type: application/yaml
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ main.yaml
22
functions/*-pkg.py
33
*-build.yaml
44
*-pkg.yaml
5+
.venv/

0 commit comments

Comments
 (0)