This repository has been archived by the owner on May 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
44 lines (38 loc) · 2.08 KB
/
force.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Taken from https://github.com/suchmememanyskill/CssLoader-ThemeDb/blob/main/.github/workflows/force.yml
name: force CI
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install requirements
run: pip install -r requirements.txt
- shell: bash
env:
SECRET_APPLICATIONKEY: ${{ secrets.SECRET_APPLICATIONKEY }}
SECRET_ENDPOINT: ${{ secrets.SECRET_ENDPOINT }}
SECRET_KEYID: ${{ secrets.SECRET_KEYID }}
name: Build packs.json
run: python3 main.py upload force
- name: Upload packs.json
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions
with:
upload_url: https://uploads.github.com/repos/EMERALD0874/AudioLoader-PackDB/releases/79479505/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
release_id: 79479505 # same as above (id can just be taken out the upload_url, it's used to find old releases)
asset_path: ./packs.json # path to archive to upload
asset_name: packs.json # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
asset_content_type: application/json # required by GitHub API
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted