Skip to content

ci: update main.yml

ci: update main.yml #7

Workflow file for this run

name: Create Archive
on: [push]
jobs:
tag:
name: Tag
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: "latest"
body: |
Update
draft: false
prerelease: false
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