zip test
parent
3fa36e9926
commit
edab5bcc8e
@ -1,34 +0,0 @@
|
||||
name: Zip Steam Files
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'old_steam/**' # Trigger the workflow when changes are pushed to the /old_steam directory
|
||||
|
||||
jobs:
|
||||
create_release:
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Create and zip release
|
||||
run: |
|
||||
mkdir -p release
|
||||
zip -r release/old_steam.zip old_steam
|
||||
working-directory: ${{ github.workspace }}
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: v${{ github.run_number }}
|
||||
release_name: Release v${{ github.run_number }}
|
||||
body: |
|
||||
Automatically created release by GitHub Actions
|
||||
files: |
|
||||
release/old_steam.zip
|
@ -0,0 +1,32 @@
|
||||
name: Zip Steam Files
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
create-and-commit-zip:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Create Zip
|
||||
run: |
|
||||
zip -r old_steam.zip old_steam
|
||||
|
||||
- name: Commit Zip File
|
||||
run: |
|
||||
git config --local user.email "actions@github.com"
|
||||
git config --local user.name "GitHub Actions"
|
||||
git add old_steam.zip
|
||||
git commit -m "Add zip file"
|
||||
git push
|
||||
|
||||
- name: Upload Zip Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: my-zip-artifact
|
||||
path: old_steam.zip
|
Loading…
Reference in New Issue