1
0
This repository has been archived on 2024-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
fist-attemp-bds-Maneger/.github/workflows/main.yaml
dependabot[bot] b5bb94e4b0
Bump actions/setup-node from 2.3.2 to 2.4.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.3.2 to 2.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.3.2...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-05 20:13:18 +00:00

92 lines
2.2 KiB
YAML

name: Pre Bin
on:
push:
branches:
- main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
deleteReleases:
runs-on: ubuntu-latest
name: Delete old releases
steps:
- name: Checkout
uses: actions/checkout@main
- name: Delete Old Releases
uses: Sirherobrine23/delete-older-releases@master
with:
delete_tags: true
keep_latest: 1
delete_tag_pattern: Pre_Bds_Maneger_
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BuildBDSWeb:
needs: [deleteReleases]
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: "${{ matrix.os }}"
name: "System ${{ matrix.os }}"
steps:
- name: Setup NodeJS
uses: actions/setup-node@v2.4.0
with:
node-version: 15.x
- name: Install NASM (Windows)
if: matrix.os == 'windows-latest'
uses: ilammy/setup-nasm@v1.2.0
- name: Checkout Repository
uses: actions/checkout@master
- name: NPM Install packages
run: npm install --no-save
- name: Build Bds Maneger
run: npm run nexe
- name: Releases
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: "The Bds Maneger Release"
tag_name: "Pre_Bds_Maneger_${{ github.run_id }}"
files: "Bds_Maneger_Portable-*"
body: "${{ matrix.os }}"
prerelease: true
docker:
needs: [deleteReleases]
runs-on: ubuntu-latest
steps:
- 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: ${{ secrets.DOCKER_ORG_USER }}
password: ${{ secrets.DOCKER_ORG_PASS }}
- name: checkout
uses: actions/checkout@master
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: bdsmaneger/maneger:nightly
platforms: linux/amd64,linux/arm64,linux/arm/v7