Преглед изворни кода

Update image trigger.

tags/v4.1.0-rc1
Luigi Cruz пре 4 година
committed by GitHub
родитељ
комит
471c7f46cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 7 додато и 18 уклоњено
  1. +7
    -18
      .github/workflows/release.yml

+ 7
- 18
.github/workflows/release.yml Прегледај датотеку

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

name: Build & Deploy Image

@@ -35,27 +34,17 @@ jobs:
run: |
chmod a+rw ${{ 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
id: upload-release-asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.LONG_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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_name: ${{ steps.builder.outputs.filename }}
asset_content_type: application/x-tar
asset_content_type: application/x-tar
- name: Delete Image
id: delete_image
run: |
rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}
rm ${{ env.working-directory }}/deploy/${{ steps.builder.outputs.filename }}

Loading…
Откажи
Сачувај