Skip to content

Commit

Permalink
Update and rename main.yml to release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyza committed Nov 3, 2021
1 parent 3ddd366 commit f262bd1
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/main.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
name: CI
name: Release

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- name: Newline
run: |
NEWLINE=$(cat << EOF
EOF)
NEWLINE="${NEWLINE//'%'/'%25'}"
NEWLINE="${NEWLINE//$'\n'/'%0A'}"
NEWLINE="${NEWLINE//$'\r'/'%0D'}"
echo "::set-output name=content::$NEWLINE"
id: newline

- name: Current Date
run: echo "::set-output name=content::$(date +'%Y-%m-%d %H:%M:%S')"
id: now-name

- name: Current Date
run: echo "::set-output name=content::$(date +'%Y-%m-%d-%H-%M-%S')"
id: now-tag

- uses: actions/checkout@v2
with:
path: electron
Expand All @@ -29,17 +47,18 @@ jobs:
with:
version: 6.20.1

- run: |
- name: Build ASAR
run: |
cd browser
pnpm i
cd ../electron
pnpm i
pnpm run build
- name: Release
uses: softprops/[email protected]
with:
name: ${{ github.sha }}
tag_name: ${{ github.ref }}
body: ${{ join(github.event.commits.*.message, '\n') }}
name: ${{ steps.now-name.outputs.content }}
tag_name: ${{ steps.now-tag.outputs.content }}
body: ${{ join(github.event.commits.*.message, steps.newline.outputs.content) }}
files: "electron/dist/kernel.asar"

0 comments on commit f262bd1

Please sign in to comment.