aboutsummaryrefslogtreecommitdiff
path: root/templates/go/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to 'templates/go/.github/workflows')
-rw-r--r--templates/go/.github/workflows/ci.yaml30
-rw-r--r--templates/go/.github/workflows/release.yaml25
-rw-r--r--templates/go/.github/workflows/update.yaml28
3 files changed, 0 insertions, 83 deletions
diff --git a/templates/go/.github/workflows/ci.yaml b/templates/go/.github/workflows/ci.yaml
deleted file mode 100644
index 72dbdc4..0000000
--- a/templates/go/.github/workflows/ci.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-name: "Build flake outputs"
-on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
- types:
- - opened
- - synchronize
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- output:
- - devShell.x86_64-linux
- steps:
- - uses: actions/checkout@v4
- with:
- fetch-depth: 0
- - name: Install Nix
- uses: cachix/install-nix-action@v24
- with:
- extra_nix_config: |
- experimental-features = nix-command flakes
- - run: nix flake check
- - run: nix develop -c echo OK
diff --git a/templates/go/.github/workflows/release.yaml b/templates/go/.github/workflows/release.yaml
deleted file mode 100644
index a828de1..0000000
--- a/templates/go/.github/workflows/release.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: release
-on:
- push:
- tags:
- - "*"
-permissions:
- contents: write
-jobs:
- goreleaser:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - run: git fetch --force --tags
- - uses: actions/setup-go@v4
- with:
- go-version: stable
- - uses: goreleaser/goreleaser-action@v5
- with:
- distribution: goreleaser
- version: latest
- args: release --clean
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/templates/go/.github/workflows/update.yaml b/templates/go/.github/workflows/update.yaml
deleted file mode 100644
index 2723a6f..0000000
--- a/templates/go/.github/workflows/update.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
-name: 'Update flake.lock'
-on:
- workflow_dispatch:
- schedule:
- - cron: '30 5 * * 0'
-# you need to grant permissions to create PR:
-# https://github.com/DeterminateSystems/update-flake-lock/issues/75
-jobs:
- update-flake-lock:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- - name: Install Nix
- uses: cachix/install-nix-action@v23
- with:
- extra_nix_config: |
- access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- - name: Update flake.lock
- id: update-flake-lock
- uses: DeterminateSystems/update-flake-lock@v20
- with:
- pr-title: "Update flake.lock"
- commit-msg: "chore: update flake"
- pr-assignees: fcuny
- pr-labels: |
- dependencies
- automated