ci: 添加Gitea自动发布工作流和初始IDEA项目配置文件
Release Modpack / release (push) Failing after 5m57s

配置Gitea Actions实现main分支推送时自动打包并发布modpack,同时添加IntelliJ IDEA项目基础配置
This commit is contained in:
DMB-codegang-Mac
2026-06-30 23:12:50 +08:00
parent 1bd89fb9d7
commit e4ed720794
5 changed files with 64 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Release Modpack
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create modpack archive
run: |
mkdir -p dist
zip -r dist/mcmtrdy-modpack.zip server-manifest.json overrides/
- name: Generate release tag
id: tag
run: |
echo "tag=$(date +'%Y%m%d-%H%M%S')-${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.tag }}
name: Modpack ${{ steps.tag.outputs.tag }}
files: dist/mcmtrdy-modpack.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+10
View File
@@ -0,0 +1,10 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# 已忽略包含查询文件的默认文件夹
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/mcmtrdy.iml" filepath="$PROJECT_DIR$/.idea/mcmtrdy.iml" />
</modules>
</component>
</project>
Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>