Skip to content

fix ci permission

fix ci permission #9

Workflow file for this run

name: build RPM
on:
push:
branches:
- main
workflow_dispatch:
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
sudo apt-get install -y alien
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build RPM
run: |
python3 getrelease.py
# set the filename to env variable
export RPM_FILE=$(ls *.rpm)
- name: Upload RPM
uses: actions/upload-artifact@v3
with:
path: ./*.rpm
- name: Release RPM
uses: softprops/action-gh-release@v1
with:
files: ${{ env.RPM_FILE }}
tag_name: ${{ github.ref }}
prerelease: true