Skip to content

Commit

Permalink
fix: workflow names, update depgraph on build
Browse files Browse the repository at this point in the history
  • Loading branch information
sgammon committed Jul 31, 2023
1 parent 38a65e9 commit 8ec3184
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: deploy
on: workflow_dispatch
name: Publish
on:
workflow_dispatch: {}
workflow_call: {}

jobs:
build:
Expand Down Expand Up @@ -57,6 +59,5 @@ jobs:
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}


env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"
14 changes: 11 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
name: "Build (${{ matrix.label }})"

permissions:
contents: "read"
actions: "read"
contents: "write"
id-token: "write"
checks: "write"
pull-requests: write
packages: "read"
pull-requests: "write"

strategy:
fail-fast: false
Expand Down Expand Up @@ -91,7 +93,13 @@ jobs:
security-events: write

publish-sandbox:
permissions: write-all
permissions:
actions: "read"
contents: "write"
id-token: "write"
checks: "write"
pull-requests: "write"
packages: "write"
name: "Publish: Sandbox"
needs: ["build", "codeql", "qodana"]
uses: ./.github/workflows/step.publish.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/beta' }}
gradle-version: wrapper
gradle-home-cache-cleanup: true
dependency-graph: generate
dependency-graph: generate-and-submit
gradle-home-cache-includes: |
caches
notifications
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/step.publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: "Deploy"

on:
workflow_dispatch:
Expand Down Expand Up @@ -114,6 +114,7 @@ jobs:
permissions:
id-token: write
contents: read
packages: write

outputs:
hashes: ${{ steps.hash.outputs.hashes }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ out/
!.idea/inspectionProfiles

local.properties
.DS_Store

0 comments on commit 8ec3184

Please sign in to comment.