Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Jun 5, 2024
1 parent b002f8f commit da872b4
Showing 1 changed file with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Start next development cycle
name: Release

on:
push:
Expand All @@ -7,17 +7,25 @@ on:
workflow_dispatch:

jobs:
create-pull-request:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: cargo publish
run: |
cargo publish -p ocipkg
cargo publish -p ocipkg-cli
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

next_version:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install cargo-edit
run: cargo install cargo-edit
Expand All @@ -30,6 +38,6 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: "Start developing ${{ env.NEW_VERSION}}"
branch: "version-updater/${{ env.NEW_VERSION}}"
title: "Start developing ${{ env.NEW_VERSION }}"
branch: "rust-version-update/${{ env.NEW_VERSION }}"
base: "main"

0 comments on commit da872b4

Please sign in to comment.