Skip to content

Commit 6deb61e

Browse files
committed
Refactored GitHub Actions workflows
1 parent 4ab3d1e commit 6deb61e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/builder_0_1.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'push'
169+
if: success() && github.event_name == 'release' && github.event.action == 'published'
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex git texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'push'
176+
if: success() && github.event_name == 'release' && github.event.action == 'published'
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'push'
180+
if: success() && github.event_name == 'release' && github.event.action == 'published'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/builder_2_3.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'push'
169+
if: success() && github.event_name == 'release' && github.event.action == 'published'
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex git texinfo pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'push'
176+
if: success() && github.event_name == 'release' && github.event.action == 'published'
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'push'
180+
if: success() && github.event_name == 'release' && github.event.action == 'published'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/builder_3_plus.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'push'
169+
if: success() && github.event_name == 'release' && github.event.action == 'published'
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex texinfo git pigz gawk gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'push'
176+
if: success() && github.event_name == 'release' && github.event.action == 'published'
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_32b -g $GCC_VERSION -r $RPI_TYPE -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'push'
180+
if: success() && github.event_name == 'release' && github.event.action == 'published'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

.github/workflows/builder_64.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,18 @@ jobs:
166166
chmod +x patches/curl_stfp_patcher
167167
dos2unix utils/SF_deployer
168168
chmod +x utils/SF_deployer
169-
if: success() && github.event_name == 'push'
169+
if: success() && github.event_name == 'release' && github.event.action == 'published'
170170
- name: install
171171
run: |
172172
sudo apt-get -y install -qq gcc g++ gperf flex texinfo pigz gawk git gfortran texinfo bison libncurses-dev ccache autoconf automake build-essential libssh2-1-dev openssl libcurl4 unzip wget figlet libgmp-dev libmpfr-dev
173173
sudo /usr/sbin/update-ccache-symlinks
174174
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
175175
source ~/.bashrc && echo $PATH
176-
if: success() && github.event_name == 'push'
176+
if: success() && github.event_name == 'release' && github.event.action == 'published'
177177
- name: script
178178
run: bash build-scripts/CI/CINTB_64b -g $GCC_VERSION -o $RPIOS_TYPE
179179
shell: bash
180-
if: success() && github.event_name == 'push'
180+
if: success() && github.event_name == 'release' && github.event.action == 'published'
181181
- name: before_script
182182
run: bash patches/curl_stfp_patcher
183183
shell: bash

0 commit comments

Comments
 (0)