Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonyha7 authored Mar 3, 2023
1 parent 7464c3b commit 6922153
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Download & Upload

on:
workflow_dispatch:
inputs:
ZIP_URL:
required: true
RELEASE_NAME:
required: true

jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: Download & MD5
run: |
mkdir temp
cd temp
wget ${{ github.event.inputs.ZIP_URL }}
md5sum *
- name: Upload
uses: softprops/action-gh-release@v1
with:
files: |
temp/*.img
temp/*.zip
name: ${{ github.event.inputs.RELEASE_NAME }}
tag_name: ${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6922153

Please sign in to comment.