瀏覽代碼

Update image trigger.

tags/v4.1.0-rc1
Luigi Cruz 4 年之前
committed by GitHub
父節點
當前提交
471c7f46cd
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 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…
取消
儲存