Skip to content

feat: bump package and refactor scripts (#3) #8

feat: bump package and refactor scripts (#3)

feat: bump package and refactor scripts (#3) #8

Workflow file for this run

name: Build and tag
on:
push:
branches:
- main
jobs:
tag:
if: github.repository == 'defi-wonderland/yearn-keeper-scripts' && !github.event.created
name: Create tag for new version
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.create_new_tag.outputs.tag }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: salsify/action-detect-and-tag-new-version@v2
id: create_new_tag
release:
name: Create release
runs-on: ubuntu-latest
needs: tag
if: needs.tag.outputs.tag_name
steps:
- uses: actions/checkout@v2
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.tag.outputs.tag_name }}
release_name: ${{ needs.tag.outputs.tag_name }}
draft: false
prerelease: false