diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fd36d48 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release New Version + +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Pre Release + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: Create Pre Release + uses: actions/create-release@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: 'false' + prerelease: 'true' + + - name: Slack Notification + uses: homoluctus/slatify@master + if: always() + with: + type: ${{ job.status }} + job_name: ':rocket: *Publish new release ${{ github.ref }}*' + channel: '#develop' + url: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4ef938..e1e72f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,12 @@ name: Test my typescript action -on: pull_request +on: + pull_request: + paths: + - 'src/**' + - 'dist/**' + - tsconfig.json + - package* env: IMAGE_NAME: alpine:3.10.1