Browse Source

fix(workflows): use softprops/action-gh-release@v1 instead

pull/4802/head
Wing-Kam Wong 2 years ago
parent
commit
83ce692f0b
  1. 84
      .github/workflows/release-executables.yml

84
.github/workflows/release-executables.yml

@ -107,46 +107,17 @@ jobs:
mv ./dist/Noco-macos-arm64 ./mac-dist/ mv ./dist/Noco-macos-arm64 ./mac-dist/
mv ./dist/Noco-macos-x64 ./mac-dist/ mv ./dist/Noco-macos-x64 ./mac-dist/
- name: Upload win-arm64 build to asset - name: Upload executables to asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: softprops/action-gh-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.get_release.outputs.upload_url }} files: |
asset_path: ./scripts/pkg-executable/dist/Noco-win-arm64.exe ./scripts/pkg-executable/dist/Noco-win-arm64.exe
asset_name: Noco-win-arm64.exe ./scripts/pkg-executable/dist/Noco-win-x64.exe
asset_content_type: application/octet-stream ./scripts/pkg-executable/dist/Noco-linux-arm64
./scripts/pkg-executable/dist/Noco-linux-x64
- name: Upload win-x64 build to asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./scripts/pkg-executable/dist/Noco-win-x64.exe
asset_name: Noco-win-x64.exe
asset_content_type: application/octet-stream
- name: Upload linux-arm64 build to asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./scripts/pkg-executable/dist/Noco-linux-arm64
asset_name: Noco-linux-arm64
asset_content_type: application/octet-stream
- name: Upload linux-x64 build to asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./scripts/pkg-executable/dist/Noco-linux-x64
asset_name: Noco-linux-x64
asset_content_type: application/octet-stream
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master
with: with:
@ -205,40 +176,15 @@ jobs:
id: compress id: compress
- name: Upload macos-x64 build to asset - name: Upload macos executable to asset
uses: actions/upload-release-asset@v1 uses: softprops/action-gh-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ needs.build-executables.outputs.upload_url }} files: |
asset_path: ./scripts/pkg-executable/mac-dist/Noco-macos-x64 ./scripts/pkg-executable/mac-dist/Noco-macos-x64
asset_name: Noco-macos-x64 ./scripts/pkg-executable/mac-dist/Noco-macos-arm64
asset_content_type: application/octet-stream ./scripts/pkg-executable/mac-dist/nocodb.tar.gz
- name: Upload macos-arm64 build to asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.build-executables.outputs.upload_url }}
asset_path: ./scripts/pkg-executable/mac-dist/Noco-macos-arm64
asset_name: Noco-macos-arm64
asset_content_type: application/octet-stream
- name: Upload macos compressed build(for homebrew) to asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.build-executables.outputs.upload_url }}
asset_path: ./scripts/pkg-executable/mac-dist/nocodb.tar.gz
asset_name: nocodb.tar.gz
asset_content_type: application/octet-stream
- name: Generate Homebrew Formula class and push - name: Generate Homebrew Formula class and push
run: | run: |
@ -267,7 +213,3 @@ jobs:
git commit ./Formula/nocodb.rb -m "Automatic publish" git commit ./Formula/nocodb.rb -m "Automatic publish"
git push git push

Loading…
Cancel
Save