Skip to content

Commit

Permalink
chore: switch to github actions (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatha committed Jun 13, 2023
1 parent b6592b0 commit cd3c005
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 32 deletions.
32 changes: 0 additions & 32 deletions .circleci/config.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name-template: v$NEXT_PATCH_VERSION
tag-template: v$vNEXT_PATCH_VERSION

template: |
## What’s Changed
$CHANGES
34 changes: 34 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
# You will need to pass the `--batch` flag to `gpg` in your signing step
# in `goreleaser` to indicate this is being used in a non-interactive mode.
#

name: pr
on:
pull_request:
paths:
- "**"

defaults:
run:
working-directory: .

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Test
run: go test ./...
21 changes: 21 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: tag
on:
push:
branches:
- master

defaults:
run:
working-directory: .

jobs:
tag:
name: Tag
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.PSBOT_GITHUB_TOKEN }}
with:
config-name: release-drafter.yml
publish: true

0 comments on commit cd3c005

Please sign in to comment.