Skip to content

Commit

Permalink
Update and rename CI.yml to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi authored Sep 13, 2021
1 parent a662156 commit 486b040
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 41 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/CI.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
- "releases/*"
tags:
- "*"

jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
outputs:
should-release: ${{ steps.semver-checkout.outputs.should-release }}
version: ${{ steps.semver-checkout.outputs.version }}
is-prerelease: ${{ steps.semver-checkout.outputs.is-github-prerelease }}
steps:
- id: semver-checkout
uses: EasyDesk/action-semver-checkout@v1
- run: npm install
- run: npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: ./
release:
name: GitHub Release Job
if: ${{ needs.build.outputs.should-release == 'true' }}
needs: [build, test]
runs-on: ubuntu-20.04
steps:
- uses: EasyDesk/action-semver-release@v1
with:
version: ${{ needs.build.outputs.version }}
prerelease: ${{ needs.build.outputs.is-prerelease }}

0 comments on commit 486b040

Please sign in to comment.