mirror of https://github.com/marcosfad/mbp-ubuntu
Update CI.yml
This commit is contained in:
parent
b35ef32e71
commit
bcd11d9ffa
|
@ -5,10 +5,10 @@ on:
|
||||||
[push, workflow_dispatch]
|
[push, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Mainline:
|
kubuntuMainline:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout Jammy Repo'
|
- name: 'Checkout kubuntuJammy Repo'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
|
@ -18,13 +18,13 @@ jobs:
|
||||||
echo "ver=${VERSION}" >> $GITHUB_ENV
|
echo "ver=${VERSION}" >> $GITHUB_ENV
|
||||||
echo "release=${REL}" >> $GITHUB_ENV
|
echo "release=${REL}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: 'Checkout mainline Repo'
|
- name: 'Checkout kubuntuMainline Repo'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: mainline
|
ref: kubuntuMainline
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: 'Push new version to mainline'
|
- name: 'Push new version to kubuntuMainline'
|
||||||
id: publish
|
id: publish
|
||||||
run: |
|
run: |
|
||||||
sed -i "s/KERNEL_VERSION=6.*/KERNEL_VERSION=${{ env.ver }}/g" build.sh
|
sed -i "s/KERNEL_VERSION=6.*/KERNEL_VERSION=${{ env.ver }}/g" build.sh
|
||||||
|
@ -36,7 +36,7 @@ jobs:
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.PAT }}
|
github_token: ${{ secrets.PAT }}
|
||||||
branch: mainline
|
branch: kubuntuMainline
|
||||||
|
|
||||||
ISO:
|
ISO:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -83,12 +83,8 @@ jobs:
|
||||||
tar -czvf ${ISONAME}.tar.gz ${ISONAME}.iso
|
tar -czvf ${ISONAME}.tar.gz ${ISONAME}.iso
|
||||||
ls -l
|
ls -l
|
||||||
|
|
||||||
- name: Get the ISO script
|
|
||||||
run: |
|
|
||||||
sudo cp ${{ github.workspace }}/.github/workflows/iso.sh ${{ github.workspace }}/output/iso.sh
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: github.ref == 'refs/heads/jammy'
|
if: github.ref == 'refs/heads/kubuntuJammy'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
#files: ${{ github.workspace }}/ISO/*.tar.gz
|
#files: ${{ github.workspace }}/ISO/*.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue