Finish up with new release changes

This commit is contained in:
Caelan Sayler
2024-11-02 11:25:50 +00:00
committed by Caelan
parent 399ad3e27b
commit 36bceca993
2 changed files with 36 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
name: Promote Stable Release name: Promote Release (stable)
on: on:
workflow_dispatch: workflow_dispatch:

View File

@@ -1,4 +1,4 @@
name: Publish to NuGet.org name: Publish Release
on: on:
workflow_dispatch: workflow_dispatch:
@@ -74,14 +74,14 @@ jobs:
path: ./repo path: ./repo
fetch-depth: 0 fetch-depth: 0
# - name: Tag the commit with version and push - name: Tag the commit with version and push
# working-directory: ./repo working-directory: ./repo
# run: | run: |
# echo $PKG_VERSION echo $PKG_VERSION
# COMMIT_HASH=$(gh run view ${{ github.event.inputs.workflow_run_id }} --json headSha -q ".headSha") COMMIT_HASH=$(gh run view ${{ github.event.inputs.workflow_run_id }} --json headSha -q ".headSha")
# git checkout $COMMIT_HASH git checkout $COMMIT_HASH
# git tag $PKG_VERSION git tag $PKG_VERSION
# git push origin $PKG_VERSION git push origin $PKG_VERSION
- name: Generate Release - name: Generate Release
working-directory: ./repo working-directory: ./repo
@@ -189,39 +189,33 @@ jobs:
Write-Host "Creating release..." Write-Host "Creating release..."
$notesFilePath = "./RELEASE_NOTES.md" $notesFilePath = "./RELEASE_NOTES.md"
$releaseBody | Out-File -FilePath $notesFilePath -Encoding utf8 $releaseBody | Out-File -FilePath $notesFilePath -Encoding utf8
# gh release create $currentTag --title $releaseName --notes-file $notesFilePath $releaseArg --verify-tag gh release create $currentTag --title $releaseName --notes-file $notesFilePath $releaseArg --verify-tag
# # Upload artifacts # Upload artifacts
# Write-Host "Uploading artifacts..." Write-Host "Uploading artifacts..."
# gh release upload $currentTag (get-item ../packages/*.nupkg) gh release upload $currentTag (get-item ../packages/*.nupkg)
# gh release upload $currentTag (get-item ../lib-nodejs/*.tgz) gh release upload $currentTag (get-item ../lib-nodejs/*.tgz)
# gh release upload $currentTag (get-item ../lib-rust/*.crate) gh release upload $currentTag (get-item ../lib-rust/*.crate)
# gh release upload $currentTag (get-item ../lib-c/*.zip) gh release upload $currentTag (get-item ../lib-c/*.zip)
# - name: Publish NuGet Packages - name: Publish NuGet Packages
# run: | run: |
# for f in packages/*.nupkg; do for f in packages/*.nupkg; do
# dotnet nuget push "$f" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate dotnet nuget push "$f" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
# done done
# - name: Publish NPM Package - name: Publish NPM Package
# working-directory: ./lib-nodejs working-directory: ./lib-nodejs
# run: | run: |
# npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
# npm publish velopack-$PKG_VERSION.tgz --access public npm publish velopack-$PKG_VERSION.tgz --access public
# - name: Publish Rust Crate - name: Publish Rust Crate
# working-directory: ./lib-rust working-directory: ./lib-rust
# run: | run: |
# tar -xzf velopack-$PKG_VERSION.crate tar -xzf velopack-$PKG_VERSION.crate
# cd velopack-$PKG_VERSION cd velopack-$PKG_VERSION
# rm Cargo.toml.orig rm Cargo.toml.orig
# rm .cargo_vcs_info.json rm .cargo_vcs_info.json
# cargo login ${{ secrets.CARGO_TOKEN }} cargo login ${{ secrets.CARGO_TOKEN }}
# cargo publish --allow-dirty --no-verify cargo publish --allow-dirty --no-verify
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: release-notes
path: ./repo/RELEASE_NOTES.md