Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add build and release actions #4

Merged
merged 1 commit into from
Jul 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags: v*

name: Build and Github release

jobs:
build-and-release:
name: Build and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install deps
run: sudo apt-get install libgtk-3-dev

- name: Build
run: cargo build --release --locked

- name: Release
uses: softprops/action-gh-release@v1
with:
files: target/release/glimmer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches:
- master

name: Bump

jobs:
bump:
name: Bump
runs-on: ubuntu-latest
if: ${{ !startsWith(github.event.head_commit.message, '(cargo-release)') }}
steps:
- uses: actions/checkout@v2
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"

- name: Git config
run: |
git config --global user.name 'Beep Boop'
git config --global user.email '[email protected]'

- name: Cargo release
run: |
cargo install cargo-release
cargo release --skip-publish --no-confirm