Merge pull request #111 from TaiStudio/dependabot/npm_and_yarn/electr… #145
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: "CI" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
pre-release: | |
name: "Pre Release" | |
runs-on: "windows-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Build & test" | |
run: | | |
npm install | |
npm run make | |
echo "done!" | |
- name: Edit Files | |
uses: TaiStudio/action-edit-YML@main | |
with: | |
type: 'single' | |
files: "./dist/lastest.yml" | |
elementSTR: "['files'][0]['url']" | |
replace: "-" | |
replaceFor: "." | |
- name: "Deploy" | |
if: ${{ startsWith(github.event.commits[0].message, 'v') == true }} | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GH_TOKEN }}" | |
automatic_release_tag: "${{ github.event.commits[0].message }}" | |
prerelease: false | |
title: "${{ github.event.commits[0].message }}" | |
files: | | |
dist/*.exe | |
dist/*.blockmap | |
dist/latest.yml |