Skip to content

Commit

Permalink
use gh to automate
Browse files Browse the repository at this point in the history
  • Loading branch information
kim841 committed Jul 11, 2024
1 parent ef0f710 commit 2c33d96
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
Empty file added .github/workflows/CHANGELOG.md
Empty file.
32 changes: 19 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
---
name: "release"
name: Create release

on:
push:
branches:
- "main"
- main
tags:
- v*

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
permissions:
contents: write

jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
steps:
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--notes-file=CHANGELOG.md \

0 comments on commit 2c33d96

Please sign in to comment.