-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update the way assets are uploaded
- Loading branch information
1 parent
f2d1599
commit 424bf8b
Showing
4 changed files
with
44 additions
and
24 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Publish | |
on: | ||
push: | ||
tags: | ||
- '*' | ||
- 'v*' | ||
|
||
jobs: | ||
publish_on_crates_io: | ||
|
@@ -24,6 +24,14 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: publish | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
|
||
release_linux: | ||
needs: publish_on_crates_io | ||
|
@@ -36,14 +44,16 @@ jobs: | |
with: | ||
command: build | ||
args: --release | ||
- name: Release Linux binary | ||
uses: meeDamian/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
- name: Upload Release Asset Linux | ||
id: upload-release-asset-linux | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
gzip: false | ||
files: > | ||
gitweb-linux:target/release/gitweb | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./target/release/gitweb | ||
asset_name: gitweb-linux | ||
asset_content_type: application/x-sharedlib | ||
|
||
release_windows: | ||
needs: publish_on_crates_io | ||
|
@@ -56,14 +66,16 @@ jobs: | |
with: | ||
command: build | ||
args: --release | ||
- name: Release Windows binary | ||
uses: meeDamian/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
- name: Upload Release Asset Windows | ||
id: upload-release-asset-windows | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
gzip: false | ||
files: > | ||
gitweb-windows:target/release/gitweb.exe | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./target/release/gitweb.exe | ||
asset_name: gitweb-windows.exe | ||
asset_content_type: application/x-dosexec | ||
|
||
release_macos: | ||
needs: publish_on_crates_io | ||
|
@@ -76,11 +88,13 @@ jobs: | |
with: | ||
command: build | ||
args: --release | ||
- name: Release MacOS binary | ||
uses: meeDamian/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
- name: Upload Release Asset MacOS | ||
id: upload-release-asset-macos | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
gzip: false | ||
files: > | ||
gitweb-macos:target/release/gitweb | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./target/release/gitweb | ||
asset_name: gitweb-macos | ||
asset_content_type: application/x-mach-binary |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "gitweb" | ||
version = "0.2.3" | ||
version = "0.2.4" | ||
authors = ["Yoann Fleury <[email protected]>"] | ||
edition = "2018" | ||
description = "Open the current remote repository in your browser" | ||
|