Skip to content

Commit

Permalink
workflow_dispatch, stage to rel, drop into pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
nonrational committed Mar 6, 2022
1 parent 33ab51d commit 9bea106
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: ci

on:
# build pushes to master
push:
branches:
- master
# build PRs from forks
pull_request:
# # build pushes to master
# push:
# branches:
# - master
# # build PRs from forks
# pull_request:

jobs:
test:
Expand Down
42 changes: 30 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
name: release

on:
push:
tags:
- "v*"
branches:
- "notarize-binaries"
workflow_dispatch:
inputs:
ac_username:
description: 'Apple Developer Username'
required: true
ac_password:
description: 'Apple Developer Password'
required: true
certificate:
description: 'Signing Certificate'
required: true
certificate_password:
description: 'Certificate Password'
require: true

jobs:
release:
Expand Down Expand Up @@ -33,12 +42,21 @@ jobs:
- run: make release
env:
RELEASE: ${{ steps.get_version.outputs.RELEASE_VERSION }}
AC_USERNAME: ${{ github.event.inputs.ac_username }}
AC_PASSWORD: ${{ github.event.inputs.ac_password }}
APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ github.event.inputs.certificate }}
APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ github.event.inputs.certificate_password }}

- uses: ncipollo/release-action@v1
- uses: actions/upload-artifact@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "pkg/*"
allowUpdates: true
omitBody: true
prerelease: true
removeArtifacts: true
name: puma-dev-${{ steps.get_version.outputs.RELEASE_VERSION }}-linux-amd64
path: pkg

# - uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# artifacts: "pkg/*"
# allowUpdates: true
# omitBody: true
# prerelease: true
# removeArtifacts: true
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ release-build:

release-package-darwin:
gon -log-level=debug -log-json ./gon_amd64.json
mv pkg/puma-dev-darwin-amd64.tar.gz "pkg/puma-dev-$$RELEASE-darwin-amd64.zip"
mv rel/puma-dev-darwin-amd64.zip "pkg/puma-dev-$$RELEASE-darwin-amd64.zip"

gon -log-level=debug -log-json ./gon_arm64.json
mv pkg/puma-dev-darwin-arm64.tar.gz "pkg/puma-dev-$$RELEASE-darwin-arm64.zip"
mv rel/puma-dev-darwin-arm64.zip "pkg/puma-dev-$$RELEASE-darwin-arm64.zip"

release-package-linux:
tar -C rel/linux_amd64 -cvzf "pkg/puma-dev-$$RELEASE-linux-amd64.tar.gz" puma-dev
Expand Down
4 changes: 2 additions & 2 deletions gon_amd64.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"password": "@env:AC_PASSWORD"
},
"sign" :{
"application_identity" : "XXXXX"
"application_identity" : "4109FE37B3316E057848BAD83F15BBF104D943A8"
},
"zip" :{
"output_path" : "pkg/puma-dev-darwin-amd64.tar.gz"
"output_path" : "rel/puma-dev-darwin-amd64.zip"
}
}
4 changes: 2 additions & 2 deletions gon_arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"password": "@env:AC_PASSWORD"
},
"sign" :{
"application_identity" : "XXXXX"
"application_identity" : "4109FE37B3316E057848BAD83F15BBF104D943A8"
},
"zip" :{
"output_path" : "pkg/puma-dev-darwin-arm64.tar.gz"
"output_path" : "rel/puma-dev-darwin-arm64.zip"
}
}

0 comments on commit 9bea106

Please sign in to comment.