Skip to content

Commit

Permalink
Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Feb 5, 2024
1 parent 46a63d0 commit ba8a41f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
47 changes: 19 additions & 28 deletions .github/workflows/yue_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,26 @@ jobs:
- name: Change directory
run: cd $GITHUB_WORKSPACE

# - name: Update apt
# run: sudo apt-get update -y

# - name: Install LuaRocks
# run: sudo apt-get install -y luarocks

# - name: Install Yuescript
# run: sudo luarocks install yuescript

- name: Build Lua
run: ./.github/yue ./

- name: Remove yue
run: find . -type f -name '*.yue' -delete

- name: Remove github dir
run: rm -rf .github

- name: Remove .gitignore
run: rm -f .gitignore
- name: Remove unused files and folders
run: |
rm .gitignore
rm -rf .github
rm todo.md
- name: Remove .gitattributes
run: rm -f .gitattributes
- name: Create VERSION file
run: echo -e ${{ github.ref_name }} > VERSION

- name: Remove todo.md
run: rm -f todo.md
- name: Download Yuescript and unzip yue
run: |
wget https://github.com/pigpigyyy/Yuescript/releases/download/v0.21.8/yue-linux-x86_64.zip
unzip yue-linux-x86_64.zip
rm yue-linux-x86_64.zip
- name: Create VERSION file
run: versionStr=${{ github.ref }};echo -e v${versionStr#*v} > VERSION
- name: Build .lua and remove .yue
run: |
./yue ./
rm yue
find . -type f -name '*.yue' -delete
- name: Push to lua branch
run: |
Expand All @@ -66,10 +57,10 @@ jobs:
run: zip -r9 ${{ github.event.repository.name }}.zip .

- name: Publish Release
id: create_release
uses: softprops/action-gh-release@v1
id: create_release
with:
release_name: Release ${{ github.ref }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: true
Expand Down
Binary file removed .github/yue
Binary file not shown.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Pika Software
Copyright (c) 2024 Pika Software

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit ba8a41f

Please sign in to comment.