Skip to content

Commit d816ae7

Browse files
authored
Merge pull request #289 from serokell/rvem/fix-autoreleasing
[Chore] Fix autoreleasing CI job
2 parents 64a338b + 8e4de7a commit d816ae7

File tree

4 files changed

+990
-67
lines changed

4 files changed

+990
-67
lines changed

.github/workflows/autorelease.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
- uses: actions/checkout@v3
1717

1818
- name: Create a pre-release
19+
env:
20+
OVERWRITE_RELEASE: true
21+
# https://github.com/serokell/serokell.nix/blob/c1e2a33040438443c7721523e897db5e32a52a74/overlay/github.nix#L26
1922
run: |
20-
export GITHUB_TOKEN=${{ env.GITHUB_TOKEN }}
21-
nix shell .#curl .#gitAndTools.hub -c bash -c "curl https://raw.githubusercontent.com/serokell/scratch/release-binary/scripts/release-binary.sh | bash"
23+
nix run .#github.autorelease -- "$(nix-build ./release)" "Automatic release on "$(date +\"%Y%m%d%H%M\")""
2224
2325
- name: Push latest image to dockerhub
2426
run: |
25-
export DOCKERHUB_PASSWORD=${{ env.DOCKERHUB_PASSWORD }}
2627
nix build -L .#docker-image
2728
nix shell .#skopeo -c ./scripts/upload-docker-image.sh "docker-archive:$(readlink result)" "docker://docker.io/serokell/xrefcheck:latest"

0 commit comments

Comments
 (0)