diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4e039f..73b1a9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index a23fb50..5b284a8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ main.yaml functions/*-pkg.py *-build.yaml *-pkg.yaml +.venv/