Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Update release.yml

Update release.yml #50

Workflow file for this run

name: 'Deta Release'
on:
workflow_dispatch:
inputs:
notes:
type: string
push:
branches:
- main
- master
jobs:
path-context:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node Env
uses: actions/setup-node@v4
- name: Export Version
run: |
SPACE_VERSION=$(node -e "console.log(require('./package.json').dependencies['@waline/vercel']);")
SPACE_NOTES=$([ -n "${{ inputs.notes }}" ] && echo ${{ inputs.notes }} || echo "Full ChangeLog: https://github.com/walinejs/waline/blob/main/CHANGELOG.md")
echo "Which version will be released?=> $SPACE_VERSION ;"
echo "SAPCE_NOTES: $SPACE_NOTES"
echo "SPACE_VERSION=$SPACE_VERSION" >> $GITHUB_ENV
echo "SPACE_NOTES=$SPACE_NOTES" >> $GITHUB_ENV
- name: Release
uses: lizheming/[email protected]
with:
access_token: ${{ secrets.space_access_token }}
id: ${{ secrets.space_id }}
version: ${{ env.SPACE_VERSION }}
notes: ${{ env.SPACE_NOTES }}
listed: true