-
Notifications
You must be signed in to change notification settings - Fork 36
37 lines (35 loc) · 1.08 KB
/
obs-upload.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
name: OBS Upload
on:
workflow_dispatch:
inputs:
repository-type:
description: "Which OBS repository to use"
type: choice
required: true
options:
- "development"
- "production"
push:
tags:
- '*'
jobs:
obs-upload:
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Convert from shallow repository to full repository
run: git fetch --unshallow
- name: Initialize ungoogled-chromium submodule
run: git submodule update --init --recursive
- name: Install extra packages
run: sudo apt install -y xmlstarlet
- name: Run OBS Upload Script
env:
OBS_API_USERNAME: ${{ secrets.OBS_API_USERNAME }}
OBS_API_PASSWORD: ${{ secrets.OBS_API_PASSWORD }}
OBS_API_PROJECT: ${{ secrets.OBS_API_PROJECT }}
OBS_REPOSITORY_TYPE: ${{ github.event.inputs.repository-type }}
run: .github/workflows/obs-upload.bash