-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update publish workflows to react to release creation
- Loading branch information
1 parent
25e3b8e
commit c59617f
Showing
2 changed files
with
42 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,8 @@ | |
name: Linux-Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
@@ -28,49 +27,50 @@ jobs: | |
|
||
- run: npm run release | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
- run: zip --junk-paths build/ATTRIBUTION.linux.zip build/ATTRIBUTION.*.json | ||
|
||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload debian installer | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: deb-installer | ||
asset_path: dist/fs-viewer*.deb | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-linux-${{ github.event.release.tag_name }}.deb | ||
asset_path: dist/fs-viewer_${{ github.event.release.tag_name }}_amd64.deb | ||
asset_content_type: application/octlet-stream | ||
|
||
- name: Upload RPM installer | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: rpm-installer | ||
asset_path: dist/fs-viewer*.rpm | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-linux-${{ github.event.release.tag_name }}.rpm | ||
asset_path: dist/fs-viewer-${{ github.event.release.tag_name }}.x86_64.rpm | ||
asset_content_type: application/octlet-stream | ||
|
||
- name: Upload ASAR archive | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: linux-asar | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-linux-${{ github.event.release.tag_name }}.app.asar | ||
asset_path: dist/linux-unpacked/resources/app.asar | ||
asset_content_type: application/octlet-stream | ||
|
||
- name: Upload attribution files | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: linux-attributions | ||
asset_path: build/ATTRIBUTION.*.json | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-linux-attributions-${{ github.event.release.tag_name }}.zip | ||
asset_path: build/ATTRIBUTION.linux.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,8 @@ | |
name: Windows-Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
@@ -31,40 +30,40 @@ jobs: | |
|
||
- run: npm run release | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
- run: Compress-Archive build/ATTRIBUTION.*.json build/ATTRIBUTION.win.zip | ||
|
||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload windows installer | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: win-installer | ||
asset_path: dist/fs-viewer*.exe | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-win-${{ github.event.release.tag_name }}.exe | ||
asset_path: dist/fs-viewer Setup ${{ github.event.release.tag_name }}.exe | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload ASAR archive | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: win-asar | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-win-${{ github.event.release.tag_name }}.app.asar | ||
asset_path: dist/win-unpacked/resources/app.asar | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload attribution files | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: win-attributions | ||
asset_path: build/ATTRIBUTION.*.json | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_name: fs-viewer-win-attributions-${{ github.event.release.tag_name }}.zip | ||
asset_path: build/ATTRIBUTION.win.zip | ||
asset_content_type: application/zip |