Skip to content

Commit

Permalink
Merge pull request #43 from DeterminateSystems/graham/fh-634-spaghett…
Browse files Browse the repository at this point in the history
…i-deploy

nix: propose-release workflow, production release
  • Loading branch information
grahamc authored Feb 21, 2025
2 parents 863dd70 + 1856f4c commit dd85f77
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
release:
types:
- released

jobs:
test-closures:
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
publish:
needs: [test-closures, test-modules, build-versions-nix]
environment: ${{ github.event_name == 'release' && 'production' || '' }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/propose-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
workflow_dispatch:
inputs:
reference-id:
type: string
required: true
version:
type: string
required: true
nix-version:
type: string
required: true

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
propose-release:
uses: DeterminateSystems/propose-release/.github/workflows/workflow.yml@main
permissions:
id-token: "write"
contents: "write"
pull-requests: write
with:
reference-id: ${{ inputs.reference-id }}
version: ${{ inputs.version }}
extra-commands-early: |
sed -i 's#https://flakehub.com/f/NixOS/nix/=.*";#https://flakehub.com/f/NixOS/nix/=${{ inputs.nix-version }}";#' ./flake.nix
git add flake.nix
git commit -m "Update Nix release to ${{ inputs.nix-version }}" || true

0 comments on commit dd85f77

Please # to comment.