Files
lucide/.github/workflows/ci.yml
Eric Fennis c3e7e0c834 format file
2021-04-04 23:46:18 +02:00

38 lines
997 B
YAML

name: Continuous integration icons
on:
push:
branches:
- master
paths:
- icons/**
jobs:
create-release:
if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create new version
id: new-version
run: echo "::set-output name=NEW_VERSION::$(.github/workflows/version-up.sh --patch)"
- name: Create change log
id: change-log
run: echo "::set-output name=CHANGE_LOG::$(yarn generate:changelog)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.new-version.outputs.NEW_VERSION }}
release_name: Release ${{ github.ref }}
body: ${{ steps.change-log.outputs.CHANGE_LOG }}