Skip to content

Commit

Permalink
Merge pull request #35 from Ilyes512/feature/add-github-actions
Browse files Browse the repository at this point in the history
Add GitHub actions
  • Loading branch information
Ilyes512 committed Nov 19, 2023
2 parents 4a4c482 + bf2616b commit 7b5a78a
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# For all configuration options:
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Boilr

on:
pull_request:
push:
branches: [main]

permissions: read-all

jobs:
goreleaser:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Force fetch tags
run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Use Goreleaser for building Boilr
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: build --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Boilr

on:
push:
tags: ['*']

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Force fetch tags
run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Use Goreleaser to release Boilr
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7b5a78a

Please sign in to comment.