Skip to content

Commit

Permalink
pipeline tag testing 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelDudley committed Mar 17, 2020
1 parent 6d4d64b commit d98535b
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/maverick-web.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Maverick-Web

on: [push]
on:
push:
branches:
- 'master'
- 'stable'
tags:
- 'v*'
pull_request:
branches:
- '*'

jobs:
build:
Expand All @@ -21,4 +30,27 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: maverick-web
path: ./dist
path: ./dist
- name: Create zip file
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ./maverick-web.zip ./dist
- name: Publish distribution artifact
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.ACCESS_TOKEN }}
file: './maverick-web.zip'
asset_name: 'maverick-web'
tag: ${{ github.ref }}
overwrite: true
- name: Commit to state repository
if: startsWith(github.ref, 'refs/tags/v')
uses: drud/action-cross-commit@master
with:
source-folder: dist
destination-repository: https://samueldudley:${{ secrets.ACCESS_TOKEN }}@github.com/goodrobots/maverick-web-dist
destination-folder: .
destination-branch: testing
git-user: "samueldudley"
git-user-email: dudley.samuel@gmail.com

0 comments on commit d98535b

Please sign in to comment.