This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Merge pull request #21 from walinejs/renovate/waline-vercel-1.x #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Node Env | |
uses: actions/setup-node@v3 | |
- 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 | |