Skip to content

Commit

Permalink
feat: automatic draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Oct 11, 2023
1 parent ef0c92c commit 2f1024c
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- "develop"
- "main"
tags:
- "*.*.*"
pull_request:
types: [synchronize, opened]

Expand Down
51 changes: 50 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,35 @@ jobs:
platform: linux/arm64
tags-suffix: "-s2n"

- target: "gnu-native-roots"
platform: linux/amd64
tags-suffix: "-native-roots"

- target: "gnu-native-roots"
platform: linux/arm64
tags-suffix: "-native-roots"

- target: "musl-native-roots"
platform: linux/amd64
tags-suffix: "-slim-native-roots"

- target: "musl-native-roots"
platform: linux/arm64
tags-suffix: "-slim-native-roots"

- target: "gnu-s2n-native-roots"
platform: linux/amd64
tags-suffix: "-s2n-native-roots"

- target: "gnu-s2n-native-roots"
platform: linux/arm64
tags-suffix: "-s2n-native-roots"

steps:
- run: "echo 'The relese triggering workflows passed'"

- name: "set env"
#if [ ${{ github.ref_name == 'develop' }} ];then BUILD_NAME="-nightly";else BUILD_NAME="";fi
#if [ ${{ github.ref_name == 'develop' }} ];then BUILD_NAME="rpxy-nightly";else BUILD_NAME="rpxy";fi
run: |
if [ ${{ matrix.platform }} = "linux/amd64" ];then PLATFORM_MAP="x86_64";else PLATFORM_MAP="aarch64";fi
echo "PLATFORM_MAP=${PLATFORM_MAP}" >> $GITHUB_ENV
Expand All @@ -71,3 +95,28 @@ jobs:
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
# steps:
# - run: echo 'The release triggering workflows failed'

release:
runs-on: ubuntu-latest
needs: on-success
steps:
- name: checkout
uses: actions/checkout@v4

- name: download artifacts
uses: actions/download-artifact@v3
with:
path: /tmp

- name: list all
run: ls -la /tmp

# - name: release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: ${{ needs.on-success.outputs.artifact }}
# tag_name: ${{ github.ref }}
# draft: true
# prerelease: false
# generate_release_notes: true
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## 0.7.0 (unreleased)

## 0.6.2

### Improvement

- Feat: Add a build feature of `native-roots` to use the system's default root cert store.
- Feat: Add binary release in addition to container release
- Refactor: lots of minor improvements

## 0.6.1

### Bugfix
Expand Down
2 changes: 1 addition & 1 deletion rpxy-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rpxy"
version = "0.6.1"
version = "0.6.2"
authors = ["Jun Kurihara"]
homepage = "https://github.com/junkurihara/rust-rpxy"
repository = "https://github.com/junkurihara/rust-rpxy"
Expand Down
2 changes: 1 addition & 1 deletion rpxy-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rpxy-lib"
version = "0.6.1"
version = "0.6.2"
authors = ["Jun Kurihara"]
homepage = "https://github.com/junkurihara/rust-rpxy"
repository = "https://github.com/junkurihara/rust-rpxy"
Expand Down

0 comments on commit 2f1024c

Please sign in to comment.