Releases no longer show as deploys of g1t.sh. The runner, runner image, desktop and phone release jobs read production's secrets without making a deployment (environment with deployment: false, as the deploy's plan job does), so a release in progress no longer puts 'Building' and its tag's commit on the project's production card.
4 files+45−90/4 viewed
| 67 | 67 | needs: version | |
| 68 | 68 | # The larger machine: linking Tauri on the small one dies with a bus error. | |
| 69 | 69 | runs-on: g1t-4core | |
| 70 | − | environment: production | |
| 70 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 71 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 72 | + | environment: | |
| 73 | + | name: production | |
| 74 | + | deployment: false | |
| 71 | 75 | timeout-minutes: 60 # the most g1t's own machines run a job | |
| 72 | 76 | steps: | |
| 73 | 77 | - uses: actions/checkout@v5 | |
| ⋯ | |||
| 114 | 118 | needs: version | |
| 115 | 119 | if: vars.DESKTOP_WINDOWS_RUNNER == 'true' | |
| 116 | 120 | runs-on: [self-hosted, windows] | |
| 117 | − | environment: production | |
| 121 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 122 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 123 | + | environment: | |
| 124 | + | name: production | |
| 125 | + | deployment: false | |
| 118 | 126 | timeout-minutes: 90 | |
| 119 | 127 | steps: | |
| 120 | 128 | - uses: actions/checkout@v5 | |
| ⋯ | |||
| 147 | 155 | needs: version | |
| 148 | 156 | if: vars.DESKTOP_WINDOWS_FROM_LINUX == 'true' && vars.DESKTOP_WINDOWS_RUNNER != 'true' | |
| 149 | 157 | runs-on: g1t-4core | |
| 150 | − | environment: production | |
| 158 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 159 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 160 | + | environment: | |
| 161 | + | name: production | |
| 162 | + | deployment: false | |
| 151 | 163 | timeout-minutes: 60 # the most g1t's own machines run a job | |
| 152 | 164 | steps: | |
| 153 | 165 | - uses: actions/checkout@v5 | |
| ⋯ | |||
| 194 | 206 | needs: version | |
| 195 | 207 | if: vars.DESKTOP_MACOS_RUNNER == 'true' | |
| 196 | 208 | runs-on: [self-hosted, macos] | |
| 197 | − | environment: production | |
| 209 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 210 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 211 | + | environment: | |
| 212 | + | name: production | |
| 213 | + | deployment: false | |
| 198 | 214 | timeout-minutes: 90 | |
| 199 | 215 | steps: | |
| 200 | 216 | - uses: actions/checkout@v5 | |
| ⋯ | |||
| 226 | 242 | && contains(fromJSON('["success","skipped"]'), needs.windows_cross.result) | |
| 227 | 243 | && contains(fromJSON('["success","skipped"]'), needs.macos.result) | |
| 228 | 244 | runs-on: ubuntu-latest | |
| 229 | − | environment: production | |
| 245 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 246 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 247 | + | environment: | |
| 248 | + | name: production | |
| 249 | + | deployment: false | |
| 230 | 250 | timeout-minutes: 20 | |
| 231 | 251 | steps: | |
| 232 | 252 | - uses: actions/checkout@v5 | |
| 45 | 45 | release: | |
| 46 | 46 | name: Build and publish to g1t.sh/downloads/mobile | |
| 47 | 47 | runs-on: ubuntu-latest | |
| 48 | − | environment: production | |
| 48 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 49 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 50 | + | environment: | |
| 51 | + | name: production | |
| 52 | + | deployment: false | |
| 49 | 53 | timeout-minutes: 60 | |
| 50 | 54 | steps: | |
| 51 | 55 | - uses: actions/checkout@v5 |
| 58 | 58 | # repository variable RUNNER_BASE_SELF_HOSTED is "true": without one, | |
| 59 | 59 | # each run waited in the queue for a day and a half and then failed. | |
| 60 | 60 | if: ${{ vars.RUNNER_BASE_SELF_HOSTED == 'true' }} | |
| 61 | − | environment: production | |
| 61 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 62 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 63 | + | environment: | |
| 64 | + | name: production | |
| 65 | + | deployment: false | |
| 62 | 66 | timeout-minutes: 60 | |
| 63 | 67 | steps: | |
| 64 | 68 | - uses: actions/checkout@v5 |
| 29 | 29 | binaries: | |
| 30 | 30 | name: Build, sign and publish | |
| 31 | 31 | runs-on: ubuntu-latest | |
| 32 | − | environment: production | |
| 32 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 33 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 34 | + | environment: | |
| 35 | + | name: production | |
| 36 | + | deployment: false | |
| 33 | 37 | timeout-minutes: 60 | |
| 34 | 38 | steps: | |
| 35 | 39 | - uses: actions/checkout@v5 | |
| ⋯ | |||
| 95 | 99 | # Builds for arm64 as well as amd64, which needs QEMU's emulators | |
| 96 | 100 | # registered on the machine: a self-hosted runner's, for now. | |
| 97 | 101 | runs-on: [self-hosted, docker] | |
| 98 | − | environment: production | |
| 102 | + | # Production's secrets, without a deployment: a release is not a deploy of | |
| 103 | + | # g1t.sh, and would otherwise show on its card as one in progress. | |
| 104 | + | environment: | |
| 105 | + | name: production | |
| 106 | + | deployment: false | |
| 99 | 107 | timeout-minutes: 30 | |
| 100 | 108 | # Its token pushes the image to g1t's registry. | |
| 101 | 109 | permissions: | |