Skip to content

Commit

Permalink
ci: add "release" action workflow (#1150)
Browse files Browse the repository at this point in the history
This workflow will bump a version and create a tag which will kick-off another
build that will build release binary archives and create a GH release.

Maintainer is still responsible for building artifacts on M1 mac.
  • Loading branch information
bartlomieju committed Dec 6, 2022
1 parent 3e8a572 commit afe7697
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
workflow_dispatch:
inputs:
releaseKind:
description: 'Kind of release'
default: 'minor'
type: choice
options:
- minor
- patch
required: true

jobs:
rust:
name: release
runs-on: ubuntu-latest
timeout-minutes: 120

steps:
- name: Clone repository
uses: actions/checkout@v3
with:
token: ${{ secrets.DENOBOT_PAT }}

- uses: denoland/setup-deno@v1
- uses: dtolnay/rust-toolchain@stable

- name: Tag and release
env:
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
GH_WORKFLOW_ACTOR: ${{ github.actor }}
run: |
git config user.email "[email protected]"
git config user.name "denobot"
deno run -A https://raw.githubusercontent.com/denoland/automation/0.16.1/tasks/publish_release.ts --${{github.event.inputs.releaseKind}} --skip-release
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,17 @@ increasing amount of V8's API in Rust.
**When building I get unknown argument: '-gno-inline-line-tables'**

Use `export GN_ARGS="no_inline_line_tables=false"` during build.

## For maintainers

**Cut a release**

Go to https://github.com/denoland/rusty_v8/actions/workflows/release.yml, select
proper release kind and wait for the workflow to complete. It will bump the
version and create a tag. You will need to manually upload binary archives for
M1 build.

```
$ V8_FROM_SOURCE=1 cargo build
$ V8_FROM_SOURCE=1 cargo build --release
```

0 comments on commit afe7697

Please sign in to comment.