Skip to content

ci: update main.yml

ci: update main.yml #5

Workflow file for this run

name: Create Archive
on:
[push]
jobs:
tag:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12
steps:
- uses: phish108/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN}}
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@master
name: Archive Release
- uses: thedoctor0/zip-release@main
with:
path: '${{ github.workspace }}/*'
directory: '../.'
type: 'zip'
filename: '${{ github.workspace }}/NeoCraft_[1.18.2].zip'
exclusions: '*.git* /*node_modules/* .editorconfig'
- name: Upload Release
uses: ncipollo/release-action@v1
with:
commit: master
tag: latest
artifacts: "${{ github.workspace }}/NeoCraft_[1.18.2].zip"
token: ${{ secrets.GITHUB_TOKEN }}
zip:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
#- name: ReCreate release branch
# run: |
# git push origin --delete release
# git branch release
#- name: Checkout release branch
# run: git checkout release
- name: Create release zip file
run: zip -r release.zip . -x "*.git*"
- name: Dropbox Uploader
uses: oskarbukovsky/[email protected]
with:
accessToken: ${{ secrets.DROPBOX_TOKEN }}
destination: /NeoCraft_[1.18.2]
file: release.zip
#- name: Track release zip with LFS
# run: git lfs track release.zip
#- name: Commit and push release zip
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "Worker#001"
# git add release.zip
# git commit -m "Added release zip file"
# git push -u origin release