Browse Source

Fix GitHub CI

20230320
MengYX 5 years ago
parent
commit
a824bf1f63
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 21
      .github/workflows/release.yml

21
.github/workflows/release.yml

@ -12,7 +12,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 12.x - name: Use Node.js 12.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
@ -43,30 +43,33 @@ jobs:
- name: Create a Release - name: Create a Release
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }}
release_name: "Build $(date %Y/%m/%d)" release_name: "Build $(date %Y/%m/%d)"
draft: true draft: true
- name: Upload Release Assets - legacy.tar.gz - name: Upload Release Assets - legacy.tar.gz
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1.0.2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./legacy.tar.gz asset_path: ./legacy.tar.gz
asset_name: legacy.tar.gz asset_name: legacy.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip
- name: Upload Release Assets - legacy.zip - name: Upload Release Assets - legacy.zip
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1.0.2
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./legacy.zip asset_path: ./legacy.zip
asset_name: legacy.zip asset_name: legacy.zip
asset_content_type: application/zip asset_content_type: application/zip
- name: Upload Release Assets - modern.tar.gz - name: Upload Release Assets - modern.tar.gz
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1.0.2
env: env:
@ -76,7 +79,7 @@ jobs:
asset_path: ./modern.tar.gz asset_path: ./modern.tar.gz
asset_name: modern.tar.gz asset_name: modern.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip
- name: Upload Release Assets - modern.zip - name: Upload Release Assets - modern.zip
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1.0.2
env: env:
@ -86,7 +89,7 @@ jobs:
asset_path: ./modern.zip asset_path: ./modern.zip
asset_name: modern.zip asset_name: modern.zip
asset_content_type: application/zip asset_content_type: application/zip
- name: Upload Release Assets - sha256sum.txt - name: Upload Release Assets - sha256sum.txt
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1.0.2
env: env:
@ -96,4 +99,4 @@ jobs:
asset_path: ./sha256sum.txt asset_path: ./sha256sum.txt
asset_name: sha256sum.txt asset_name: sha256sum.txt
asset_content_type: text/plain asset_content_type: text/plain

Loading…
Cancel
Save