Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate release #1026

Merged
merged 7 commits into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions create-release.sh → .github/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@

# Remove old 'build' folder
if [ -d build ]; then
read -p "Will delete 'build/' folder. Is that OK? [y/N] " -r

if [[ ! $REPLY =~ ^[Yy]$ ]]
then
exit 1
else
rm -rf build
fi
rm -rf build
narickmann marked this conversation as resolved.
Show resolved Hide resolved
fi

npm ci
Expand Down
35 changes: 35 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
changelog:

exclude:
authors:
- dependabot
- dependabot[bot]

categories:
- title: Security Fixes
labels:
- C-security

- title: New Features
labels:
- C-new-feature

- title: Feature Enhancements
labels:
- C-enhancement

- title: Usability and Accessibility
labels:
- "A-*"
narickmann marked this conversation as resolved.
Show resolved Hide resolved

- title: Bug Fixes
labels:
- bug

- title: Documentation
labels:
- documentation

- title: Other Changes
labels:
- "*"
34 changes: 34 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
tags:
- '*-*-*'

name: Create release draft

jobs:
build:
name: Create release from tag
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v3

- name: use node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16

- name: download dependencies
run: npm ci
narickmann marked this conversation as resolved.
Show resolved Hide resolved

- name: create release tarball
run: ./.github/create-release.sh
LukasKalbertodt marked this conversation as resolved.
Show resolved Hide resolved

- name: create new release
uses: softprops/action-gh-release@v1
with:
files: oc-studio-*.tar.gz
draft: true
fail_on_unmatched_files: true
generate_release_notes: true