feat(ci): adapt formal releases and MAIN deployment #3
No files matched your search
@@ -31,7 +31,6 @@ jobs:
|
|||||||
if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 55
|
timeout-minutes: 55
|
||||||
env:
|
|
||||||
container:
|
container:
|
||||||
image: node:24-bookworm
|
image: node:24-bookworm
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -310,6 +310,8 @@ def preflight(version, commit):
|
|||||||
require(state['version'] == version, 'Reserved version mismatch')
|
require(state['version'] == version, 'Reserved version mismatch')
|
||||||
validate_identity(version, commit)
|
validate_identity(version, commit)
|
||||||
gitea, github = clients()
|
gitea, github = clients()
|
||||||
|
require(gitea.request('/user')['login'] == 'eezd', 'Unexpected Gitea release identity')
|
||||||
|
require(github.request('/user')['login'] == 'eezd', 'Unexpected GitHub release identity')
|
||||||
repository = github.repo()
|
repository = github.repo()
|
||||||
require(repository['permissions']['push'], 'GitHub credential cannot publish this repository')
|
require(repository['permissions']['push'], 'GitHub credential cannot publish this repository')
|
||||||
scopes = {s.strip() for s in github.headers.get('X-OAuth-Scopes', '').split(',')}
|
scopes = {s.strip() for s in github.headers.get('X-OAuth-Scopes', '').split(',')}
|
||||||
|
|||||||
Reference in new issue
Block a user