Skip to content

Commit

Permalink
CI release action
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-harding committed Mar 22, 2024
1 parent 4346e08 commit 78b1894
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish release

# on:
# push:
# tags:
# - v*

permissions:
contents: write

jobs:
build-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Update local toolchain
uses: actions/checkout@v4
run: rustup update
- name: Build
run: cargo build --release
- name: Archive artifact
uses: actions/upload-artifact@v4
with:
name: neophyte-linux
path: target/release/neophyte

create-release:
runs-on: ubuntu-latest
timeout-minutes: 5
needs:
- build-ubuntu
steps:
- name: Download Linux artifact
uses: actions/download-artifact@v4
with:
name: neophyte-linux
- name: Create release
uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
gh release create "$TAG" \
--repo="$GITHUB_REPOSITORY" \
--title="${TAG#v}" \
--notes-from-tag
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "neophyte"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
authors = ["Tim Harding"]
repository = "https://github.com/tim-harding/neophyte"
Expand Down

0 comments on commit 78b1894

Please sign in to comment.