CI fx workflow 39
This commit is contained in:
@@ -2,10 +2,9 @@ name: Archlinux build
|
||||
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀
|
||||
on: [push]
|
||||
jobs:
|
||||
if: ${{ gitea.ref_name }} == '/refs/heads/master'
|
||||
build:
|
||||
runs-on: arch-latest
|
||||
if: ${{ github.ref }} == 'refs/head/zx'
|
||||
if: ${{ github.ref }} == 'refs/head/master'
|
||||
branches:
|
||||
- 'master'
|
||||
- 'zx'
|
||||
@@ -28,10 +27,13 @@ jobs:
|
||||
run: |
|
||||
su -w GITHUB_SHA,GITHUB_REF_NAME,GITHUB_REF_TYPE - builder -c makepkg
|
||||
su - builder -c "ls -la"
|
||||
- name: Constructing artifact name and version
|
||||
run: |
|
||||
echo "BFORCE_VER=$(cat /builder/src/bforce/source/.version)-$(date +%Y%M%d)" >> $GITHUB_ENV
|
||||
- name: Retrieving artifact files
|
||||
run: mkdir bforce && cp /builder/bforce-r*.pkg.tar.zst bforce
|
||||
- name: Try to upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: bforce-${{ env.GITHUB_SHA }}
|
||||
name: bforce-${{ env.BFORCE_VER }}
|
||||
path: bforce
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Getting version info
|
||||
run: |
|
||||
echo "BFORCE_VER=$(cat ${{ env.GITHUB_WORKSPACE }}/source/.version)" >> $GITHUB_ENV
|
||||
echo "BFORCE_VER=$(cat ${{ env.GITHUB_WORKSPACE }}/source/.version)-$(date +%Y%M%d)" >> $GITHUB_ENV
|
||||
- name: Building package
|
||||
continue-on-error: false
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user