Skip to content

Commit

Permalink
feat: add gh actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
moustacheful authored Jul 11, 2021
1 parent 97745f0 commit 5c37b65
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
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 'moustacheful@users.noreply.github.com'
- name: Cargo release
run: |
cargo install cargo-release
cargo release --skip-publish --no-confirm

0 comments on commit 5c37b65

Please sign in to comment.