diff --git a/.github/workflows/major.yml b/.github/workflows/major.yml new file mode 100644 index 0000000000000000000000000000000000000000..ca901f21e19e56dcfe4146f38fc6a92af3e67b51 --- /dev/null +++ b/.github/workflows/major.yml @@ -0,0 +1,124 @@ +name: Major Release + +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + # GET LATEST CODE + - name: Checkout latest code + uses: actions/checkout@master + with: + fetch-depth: 0 + + # GENERATE CHANGELOG, TAG, RELEASE + - id: conventional_changelog + uses: ardalanamini/auto-changelog@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + - id: compute_tag + uses: craig-day/compute-tag@v13 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + version_scheme: semantic + version_type: major + # MAJOR.MINOR.PATCH + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ steps.compute_tag.outputs.next_tag }} + body: | + Automatic release of version: **${{ steps.compute_tag.outputs.next_tag }}** + **Changes in this release:** + ${{ steps.conventional_changelog.outputs.changelog }} + draft: false + prerelease: false + + - name: Setup Node.js environment + uses: actions/setup-node@v2.4.0 + with: + # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 + node-version: '>= 16.9.1' + # Set this option if you want the action to check for the latest available version that satisfies the version spec + check-latest: false + + - name: Install Quasar + run: npm install -g @quasar/cli + + - name: Install packages + run: npm install + + - name: Build project + run: quasar build + + - name: List files + run: pwd && ls -al * + + - name: Create Build Archive tar.gz + run: | + echo "**** Creating archive of quasar build ****" + tar -czf lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz dist/spa + + - name: Create Build Archive zip + uses: papeloto/action-zip@v1 + with: + files: dist/spa + recursive: true + dest: lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + + - name: Upload Release Archive tar.gz + id: upload-release-asset-archive-targz + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz + asset_name: lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz + asset_content_type: application/gzip + + - name: Upload Release Archive zip + id: upload-release-asset-archive-zip + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + asset_name: lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + asset_content_type: application/zip + + # DOCKER RELATED + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: griefed + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm/v7,linux/arm64 + push: true + tags: | + ghcr.io/griefed/ltt-mapmaker:latest + ghcr.io/griefed/ltt-mapmaker:${{ steps.compute_tag.outputs.next_tag }} + griefed/ltt-mapmaker:latest + griefed/ltt-mapmaker:${{ steps.compute_tag.outputs.next_tag }} diff --git a/.github/workflows/minor.yml b/.github/workflows/minor.yml new file mode 100644 index 0000000000000000000000000000000000000000..4b29e923166db4c902251bc81621b9b9a4a88f2c --- /dev/null +++ b/.github/workflows/minor.yml @@ -0,0 +1,124 @@ +name: Minor Release + +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + # GET LATEST CODE + - name: Checkout latest code + uses: actions/checkout@master + with: + fetch-depth: 0 + + # GENERATE CHANGELOG, TAG, RELEASE + - id: conventional_changelog + uses: ardalanamini/auto-changelog@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + - id: compute_tag + uses: craig-day/compute-tag@v13 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + version_scheme: semantic + version_type: minor + # MAJOR.MINOR.PATCH + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ steps.compute_tag.outputs.next_tag }} + body: | + Automatic release of version: **${{ steps.compute_tag.outputs.next_tag }}** + **Changes in this release:** + ${{ steps.conventional_changelog.outputs.changelog }} + draft: false + prerelease: false + + - name: Setup Node.js environment + uses: actions/setup-node@v2.4.0 + with: + # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 + node-version: '>= 16.9.1' + # Set this option if you want the action to check for the latest available version that satisfies the version spec + check-latest: false + + - name: Install Quasar + run: npm install -g @quasar/cli + + - name: Install packages + run: npm install + + - name: Build project + run: quasar build + + - name: List files + run: pwd && ls -al * + + - name: Create Build Archive tar.gz + run: | + echo "**** Creating archive of quasar build ****" + tar -czf lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz dist/spa + + - name: Create Build Archive zip + uses: papeloto/action-zip@v1 + with: + files: dist/spa + recursive: true + dest: lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + + - name: Upload Release Archive tar.gz + id: upload-release-asset-archive-targz + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz + asset_name: lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz + asset_content_type: application/gzip + + - name: Upload Release Archive zip + id: upload-release-asset-archive-zip + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + asset_name: lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + asset_content_type: application/zip + + # DOCKER RELATED + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: griefed + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm/v7,linux/arm64 + push: true + tags: | + ghcr.io/griefed/ltt-mapmaker:latest + ghcr.io/griefed/ltt-mapmaker:${{ steps.compute_tag.outputs.next_tag }} + griefed/ltt-mapmaker:latest + griefed/ltt-mapmaker:${{ steps.compute_tag.outputs.next_tag }} diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml new file mode 100644 index 0000000000000000000000000000000000000000..a4f32554e9e676355e1853cb69623cbd0627bea4 --- /dev/null +++ b/.github/workflows/patch.yml @@ -0,0 +1,124 @@ +name: Patch Release + +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + # GET LATEST CODE + - name: Checkout latest code + uses: actions/checkout@master + with: + fetch-depth: 0 + + # GENERATE CHANGELOG, TAG, RELEASE + - id: conventional_changelog + uses: ardalanamini/auto-changelog@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + - id: compute_tag + uses: craig-day/compute-tag@v13 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + version_scheme: semantic + version_type: patch + # MAJOR.MINOR.PATCH + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ steps.compute_tag.outputs.next_tag }} + body: | + Automatic release of version: **${{ steps.compute_tag.outputs.next_tag }}** + **Changes in this release:** + ${{ steps.conventional_changelog.outputs.changelog }} + draft: false + prerelease: false + + - name: Setup Node.js environment + uses: actions/setup-node@v2.4.0 + with: + # Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0 + node-version: '>= 16.9.1' + # Set this option if you want the action to check for the latest available version that satisfies the version spec + check-latest: false + + - name: Install Quasar + run: npm install -g @quasar/cli + + - name: Install packages + run: npm install + + - name: Build project + run: quasar build + + - name: List files + run: pwd && ls -al * + + - name: Create Build Archive tar.gz + run: | + echo "**** Creating archive of quasar build ****" + tar -czf lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz dist/spa + + - name: Create Build Archive zip + uses: papeloto/action-zip@v1 + with: + files: dist/spa + recursive: true + dest: lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + + - name: Upload Release Archive tar.gz + id: upload-release-asset-archive-targz + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz + asset_name: lttmm-${{ steps.compute_tag.outputs.next_tag }}.tar.gz + asset_content_type: application/gzip + + - name: Upload Release Archive zip + id: upload-release-asset-archive-zip + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + asset_name: lttmm-${{ steps.compute_tag.outputs.next_tag }}.zip + asset_content_type: application/zip + + # DOCKER RELATED + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: griefed + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm/v7,linux/arm64 + push: true + tags: | + ghcr.io/griefed/ltt-mapmaker:latest + ghcr.io/griefed/ltt-mapmaker:${{ steps.compute_tag.outputs.next_tag }} + griefed/ltt-mapmaker:latest + griefed/ltt-mapmaker:${{ steps.compute_tag.outputs.next_tag }} diff --git a/README.md b/README.md index 36debf50a5f1f9fa851f548d3725c06f8702ba6a..c4d01315ca5b3127e1faa0b6796c8207fac78a6b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ +[](https://github.com/Griefed/ltt-mapmaker) + +[](https://www.griefed.de) +[](https://blog.griefed.de) +[](https://fleet.griefed.de) +[](https://github.com/Griefed) +[](https://hub.docker.com/u/griefed) +[](https://discord.griefed.de) + +--- + +[](https://hub.docker.com/r/griefed/serverpackcreator) +[](https://hub.docker.com/r/griefed/serverpackcreator) + +[](https://github.com/Griefed/ServerPackCreator/releases/latest) +[](https://github.com/Griefed/ServerPackCreator/blob/main/LICENSE) + +[](https://github.com/Griefed/ServerPackCreator) +[](https://github.com/Griefed/ServerPackCreator) +[](https://github.com/Griefed/ServerPackCreator/graphs/contributors) +[](https://github.com/Griefed/ServerPackCreator/releases) + +# Screenshots + [](https://store.steampowered.com/app/1313290/Let_Them_Trade/) # Let Them Trade Map Maker diff --git a/package-lock.json b/package-lock.json index 6f7f6a79fec18b5c9fd6cd670aaea832823ba1e3..a1815856e8def8222d6571142f15be33adb3456d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.1.0", "dependencies": { "@quasar/extras": "^1.11.0", - "core-js": "^3.17.3", + "core-js": "^3.18.0", "quasar": "^2.1.0" }, "devDependencies": { @@ -4057,9 +4057,9 @@ } }, "node_modules/core-js": { - "version": "3.17.3", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.17.3.tgz", - "integrity": "sha512-lyvajs+wd8N1hXfzob1LdOCCHFU4bGMbqqmLn1Q4QlCpDqWPpGf+p0nj+LNrvDDG33j0hZXw2nsvvVpHysxyNw==", + "version": "3.18.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.0.tgz", + "integrity": "sha512-WJeQqq6jOYgVgg4NrXKL0KLQhi0CT4ZOCvFL+3CQ5o7I6J8HkT5wd53EadMfqTDp1so/MT1J+w2ujhWcCJtN7w==", "hasInstallScript": true, "funding": { "type": "opencollective", @@ -16450,9 +16450,9 @@ } }, "core-js": { - "version": "3.17.3", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.17.3.tgz", - "integrity": "sha512-lyvajs+wd8N1hXfzob1LdOCCHFU4bGMbqqmLn1Q4QlCpDqWPpGf+p0nj+LNrvDDG33j0hZXw2nsvvVpHysxyNw==" + "version": "3.18.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.18.0.tgz", + "integrity": "sha512-WJeQqq6jOYgVgg4NrXKL0KLQhi0CT4ZOCvFL+3CQ5o7I6J8HkT5wd53EadMfqTDp1so/MT1J+w2ujhWcCJtN7w==" }, "core-js-compat": { "version": "3.17.3", diff --git a/package.json b/package.json index 245825e19a34b6f4fcfca79494a61cf12504c585..fecffdc0534bfea4965274081de18d70dc17c945 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@quasar/extras": "^1.11.0", - "core-js": "^3.17.3", + "core-js": "^3.18.0", "quasar": "^2.1.0" }, "devDependencies": {