Skip to content

Commit

Permalink
Move draft into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Oct 29, 2023
1 parent d8292b2 commit 2852278
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Create/Update Draft
uses: lucacome/[email protected]
with:
minor-label: "enhancement"
major-label: "change"
publish: ${{ github.ref_type == 'tag' }}
collapse-after: 50
if: github.event_name != 'pull_request'

- name: Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -73,6 +82,8 @@ jobs:
tags: ${{ matrix.nginx_version }}
cache-from: type=gha,scope=${{ matrix.nginx_version }}
cache-to: type=gha,scope=${{ matrix.nginx_version }},mode=max
provenance: true
sbom: true
target: export
build-args: NGINX_VERSION=${{ matrix.nginx_version }}
outputs: type=tar,dest=linux-amd64-nginx-${{ matrix.nginx_version }}-ngx_http_module.so.tar
Expand All @@ -84,5 +95,12 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: linux-amd64-nginx-${{ matrix.nginx_version }}-ngx_http_module.so.tgz
name: linux-amd64-nginx-${{ matrix.nginx_version }}-ngx_http_module.so.tar.gz
path: linux-amd64-nginx-${{ matrix.nginx_version }}-ngx_http_module.so.tar.gz

- name: Upload binaries on release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref_type == 'tag'
run: |
gh release upload ${{ github.ref_name }} linux-amd64-nginx-${{ matrix.nginx_version }}-ngx_http_module.so.tar.gz --clobber
23 changes: 0 additions & 23 deletions .github/workflows/draft-release.yml

This file was deleted.

0 comments on commit 2852278

Please sign in to comment.