summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkipcode66 <kipcode66@gmail.com>2021-02-06 17:01:03 -0500
committerGitHub <noreply@github.com>2021-02-06 17:01:03 -0500
commitbf4a631ec693d0a91e914070c0b9005895664b67 (patch)
treec40c6861d6296efa4a1072f6bf4ef73f7f7c6334
parent58fbd00e370a47a003c076791a0ff75f35a43968 (diff)
parentef590f9a42d6739d5a9d03747dcc612e89ecb10c (diff)
Merge pull request #38 from Pheenoh/master
Add Release Automation
-rw-r--r--.github/workflows/tpgz-release.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/tpgz-release.yml b/.github/workflows/tpgz-release.yml
new file mode 100644
index 0000000..bbaeba5
--- /dev/null
+++ b/.github/workflows/tpgz-release.yml
@@ -0,0 +1,24 @@
+name: TPGZ Release Automation
+
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Download latest release patches
+ run: curl -s https://api.github.com/repos/pheenoh/tpgz/releases/latest | grep "http.*patch" | cut -d ":" -f 2,3 | tr -d \ \" | wget -qi - --directory-prefix patches/
+ - uses: jakejarvis/s3-sync-action@master
+ with:
+ args: --acl public-read --follow-symlinks
+ env:
+ AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ AWS_REGION: 'us-east-2'
+ SOURCE_DIR: 'patches/'
+ DEST_DIR: 'patches/' \ No newline at end of file