update workflow deps #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cloner | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
TERM: linux | |
jobs: | |
buildroot: | |
name: cloner_profile | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Get short SHA | |
id: slug | |
run: echo "::set-output name=sha7::$(git rev-parse --short HEAD)" | |
- name: Zip repo files | |
run: | | |
zip -r cloner_profiles.ingenic . | |
shell: bash | |
- name: Set ZIP filename environment variable | |
run: echo "ZIP_NAME=cloner_profiles.ingenic" >> $GITHUB_ENV | |
- name: Upload cloner as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.ZIP_NAME }} | |
path: ${{ env.ZIP_NAME }} | |
- name: Upload cloner | |
if: github.event_name != 'pull_request' | |
uses: softprops/action-gh-release@master | |
with: | |
tag_name: latest | |
files: ${{ env.ZIP_NAME }} |