-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
421 additions
and
85 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
key: job-github-publish | ||
value: | ||
needs: versio-release | ||
runs-on: ubuntu-latest | ||
if: SNIPPET_not-skip-ci | ||
outputs: | ||
upload_url: ${{ steps.publish-to-github.outputs.upload_url }} | ||
steps: | ||
- name: Checkout release | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- name: Get versio | ||
uses: chaaz/versio-actions/install@v1 | ||
- name: Find version | ||
id: find-version | ||
run: 'echo ::set-output name=version::$(versio -l none info -i 0 -F | jq -r ''.[0].full_version'')' | ||
- name: Publish to GitHub | ||
id: publish-to-github | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ steps.find-version.outputs.version }} | ||
release_name: (TODO) RELEASE FOR ${{ steps.find-version.outputs.version }} | ||
body: | | ||
(TODO) SUMMARY | ||
- (TODO) FEATURE1 | ||
New to Versio? The [repository](https://github.com/chaaz/versio) is the best place to learn about Versio and what it can do. If you want to report a bug or request a feature, you can do so at our [Issues](https://github.com/chaaz/versio/issues) link, but we ask you first read the [Troubleshooting](https://github.com/chaaz/versio/blob/main/docs/troubleshooting.md) page learn about problems and their solutions. | ||
To install, follow the instructions for your platform; some files might be zipped for improved download speed. For example, on MacOS you can do something like this (assuming `~/bin` exists and is in your PATH): | ||
```sh | ||
curl -L https://github.com/chaaz/versio/releases/download/${{ steps.find-version.outputs.version }}/versio__x86_64-apple-darwin -o ~/bin/versio | ||
chmod +x ~/bin/versio | ||
``` | ||
**MacOS:** download `versio__x86_64-apple-darwin`, copy to `versio` in your PATH. | ||
**GNU Linux 64:** download `versio__x86_64-unknown-linux-gnu`, copy to `versio` in your PATH. | ||
**Windows:** download `versio__x86_64-pc-win32`, copy to `versio` in your %PATH. | ||
draft: true | ||
prerelease: false | ||
commitish: main |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
key: job-publish-versio | ||
value: | ||
needs: github-publish | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
root: '.' | ||
rustflags: '-D warnings -C link-args=-s' | ||
- os: macos-latest | ||
target: x86_64-apple-darwin | ||
root: '.' | ||
rustflags: '-D warnings' | ||
- os: windows-latest | ||
target: x86_64-pc-win32 | ||
root: '.' | ||
rustflags: '-D warnings' | ||
if: SNIPPET_not-skip-ci | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout release | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- SNIPPET_get-cargo | ||
- name: Build binary | ||
run: cargo build --release | ||
working-directory: ${{ matrix.root }} | ||
env: | ||
RUSTFLAGS: ${{ matrix.rustflags }} | ||
- name: Upload binary | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ needs.github-publish.outputs.upload_url }} | ||
asset_path: ./target/release/versio | ||
asset_name: versio__${{ matrix.target }} | ||
asset_content_type: application/octet-stream |
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
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
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,5 +1,3 @@ | ||
/target | ||
TODO* | ||
/.versio-paused | ||
/.versio-paused | ||
/.versio-paused |
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
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
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
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
Oops, something went wrong.