fix forgejo workflows to use proper syntax without external actions
This commit is contained in:
parent
f89a0f1f04
commit
94a2914dff
4 changed files with 43 additions and 77 deletions
|
|
@ -11,17 +11,18 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
git clone ${{ github.server_url }}/${{ github.repository }} .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y python3.12 python3.12-venv python3-pip
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y sbuild schroot debootstrap python3-venv python3-pip
|
||||
sudo apt install -y sbuild schroot debootstrap
|
||||
|
||||
- name: Set up virtual environment
|
||||
run: |
|
||||
|
|
@ -50,33 +51,9 @@ jobs:
|
|||
source venv/bin/activate
|
||||
twine check dist/*
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Assets
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./dist/deb_mock-${{ github.ref_name }}.tar.gz
|
||||
asset_name: deb-mock-${{ github.ref_name }}.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
||||
- name: Upload Wheel
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./dist/deb_mock-${{ github.ref_name }}-py3-none-any.whl
|
||||
asset_name: deb-mock-${{ github.ref_name }}-py3-none-any.whl
|
||||
asset_content_type: application/zip
|
||||
- name: List release artifacts
|
||||
run: |
|
||||
echo "Release artifacts created:"
|
||||
ls -la dist/
|
||||
echo "Tag: ${{ github.ref_name }}"
|
||||
echo "Repository: ${{ github.repository }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue