Browse Source

Update image trigger.

tags/v4.1.0-rc1
Luigi Cruz 4 years ago
committed by GitHub
parent
commit
471c7f46cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 18 deletions
  1. +7
    -18
      .github/workflows/release.yml

+ 7
- 18
.github/workflows/release.yml View File

@@ -1,7 +1,6 @@
on: on:
push:
tags:
- 'v*'
release:
types: [ created ]


name: Build & Deploy Image name: Build & Deploy Image


@@ -35,27 +34,17 @@ jobs:
run: | run: |
chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} chmod a+rw ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} echo ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.LONG_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.LONG_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }} asset_path: ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
asset_name: ${{ steps.builder.outputs.filename }} asset_name: ${{ steps.builder.outputs.filename }}
asset_content_type: application/x-tar
asset_content_type: application/x-tar
- name: Delete Image - name: Delete Image
id: delete_image id: delete_image
run: | run: |
rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}

Loading…
Cancel
Save