Skip to content

Commit

Permalink
Move CI to github (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
outofforest committed Apr 18, 2022
1 parent 07b72f5 commit 842c110
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 32 deletions.
21 changes: 0 additions & 21 deletions .circleci/config.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ci

on:
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: CI
run: |
go build -o ./bin/tmp-build ./build/cmd
./bin/tmp-build dev/lint dev/test build
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,25 @@ jobs:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/github-script@v6
name: Extract tag name
- name: Extract tag name
id: tag
uses: actions/github-script@v6
with:
result-encoding: string
script: return context.ref.replace(/refs\/tags\//, '');
- run: |
curl https://raw.githubusercontent.com/outofforest/build/main/build > /tmp/outofforest-build
chmod u+x /tmp/outofforest-build
/tmp/outofforest-build . build
name: Build OSMan
- uses: outofforest/rpmbuild@main
name: Build RPM
- name: Build OSMan
run: |
go build -o ./bin/tmp-build ./build/cmd
./bin/tmp-build build
- name: Build RPM
id: rpm
uses: outofforest/rpmbuild@main
with:
spec_file: ./build/osman.spec
version: ${{ steps.tag.outputs.result }}
out_dir: ./release
- uses: svenstaro/upload-release-action@v2
name: Upload RPM package to release
- name: Upload RPM package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
Expand Down

0 comments on commit 842c110

Please sign in to comment.