Skip to content

UI Color Palette 4.0.3 #14

UI Color Palette 4.0.3

UI Color Palette 4.0.3 #14

Workflow file for this run

name: Release for Figma
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set tag and release name
id: set_vars
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
echo "TAG_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
echo "RELEASE_NAME=UI Color Palette ${GITHUB_REF_NAME}" >> $GITHUB_ENV
else
echo "TAG_NAME=${{ github.event.pull_request.milestone }}" >> $GITHUB_ENV
echo "RELEASE_NAME=UI Color Palette ${{ github.event.pull_request.milestone }} • ${{ github.event.pull_request.title}}" >> $GITHUB_ENV
fi
- name: Create release
uses: actions/create-release@v1
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.RELEASE_NAME }}
body: |
## What's Changed
[Friendly release note](https://ui-color-palette.canny.io/changelog/${{ github.ref }})・[Full Changelog](https://github.com/inVoltag/figma-ui-color-palette/commits/${{ github.ref }})
draft: false
prerelease: false