Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
piniom committed Mar 2, 2024
1 parent 3705c3d commit 4fe0fb6
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# - name: Build and push Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# cache-from: type=gha
# cache-to: type=gha,mode=max

- name: Run Container and Generate PDF
run: docker run -v ${{ github.workspace }}/output:/data/output ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
Expand All @@ -51,13 +51,10 @@ jobs:
RELEASE_VERSION=$(grep 'subtitle:' convention.md | awk '{print $NF}')
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
file: output/convention.pdf
asset_name: convention_${{ env.RELEASE_VERSION }}.pdf
tag: ${{ github.ref_name }}-${{ env.RELEASE_VERSION }}
overwrite: true
body: The ${{ env.RELEASE_VERSION }} version of the convention from the ${{ github.ref_name }} branch.
draft: true
prerelease: false
automatic_release_tag: ${{ github.ref_name }}-${{ env.RELEASE_VERSION }}
files: |
output/convention.pdf

0 comments on commit 4fe0fb6

Please sign in to comment.