From c2049c08dda5a2bf4bf9dd9ea95c0b8a5b27eb7c Mon Sep 17 00:00:00 2001 From: valmojr Date: Thu, 9 Nov 2023 21:08:43 -0300 Subject: [PATCH] adicionado publish no dev --- .github/workflows/build.yaml | 3 -- .github/workflows/prepublish.yml | 52 ++++++++++++++++++++++++++++++++ PT_Contributor.md | 2 +- 3 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/prepublish.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d5419ec..beb295c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,9 +1,6 @@ name: Build on: - push: - branches: - - dev pull_request: types: [opened, reopened] diff --git a/.github/workflows/prepublish.yml b/.github/workflows/prepublish.yml new file mode 100644 index 0000000..4a9f162 --- /dev/null +++ b/.github/workflows/prepublish.yml @@ -0,0 +1,52 @@ +name: Publish + +on: + push: + branches: + - dev + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout the source code + uses: actions/checkout@v3 + - name: Lint (sqflint) + uses: arma-actions/sqflint@master + continue-on-error: true + + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout the source code + uses: actions/checkout@v3 + - name: Setup HEMTT + uses: arma-actions/hemtt@v1 + - name: Run HEMTT build + run: hemtt release + - name: Extract Zipped Mod + run: unzip releases/braf_factions-latest.zip -d releases + - uses: arma-actions/workshop-upload@v1 + with: + appId: '107410' + itemId: ${{ secrets.STEAM_WORKSHOP_ITEM_ID_DEV }} + contentPath: releases/@braf_factions + changelog: 'Update' + env: + STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} + STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} + - name: Discord notification + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK }} + username: Fábio + avatar-url: https://s.glbimg.com/jo/g1/f/original/2010/07/07/milhem-cortaztropadeelite-2.jpg + embed-title: ${{ github.repository }} ATUALIZADO E PUBLICADO! + embed-url: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' + embed-description: Commit ${{ github.sha }} - ${{ github.event.head_commit.message }} autorizado e mod (dev) atualizado no Steam Workshop! + embed-author-name: ${{ github.actor }} + embed-author-url: https://github.com/${{ github.actor }} + embed-author-icon-url: https://avatars.githubusercontent.com/${{ github.actor }} + embed-footer-icon-url: https://avatars.githubusercontent.com/${{ github.repository_owner }} + embed-footer-text: ${{ github.repository_owner }} + embed-color: 4849919 diff --git a/PT_Contributor.md b/PT_Contributor.md index 9c348c6..e9ede55 100644 --- a/PT_Contributor.md +++ b/PT_Contributor.md @@ -3,7 +3,7 @@ O BRAF Factions é uma porção do BRAF destinado a servir de template para mods Para começar, é preciso que você: - Tenha uma conta cadastrada no GitHub, caso não tenha, [clique aqui](https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home). -- Tenha o Git instalado no seu PC, [download aqui](https://git-scm.com/downloads), recomendo selecionar as opções de permitir adicionar as ações de Git Bash e Git GUI quando solicitado no instalador. +- Tenha o Git instalado, [download aqui](https://git-scm.com/downloads), recomendo selecionar as opções de permitir adicionar as ações de Git Bash e Git GUI quando solicitado no instalador. ## O que é versionamento Ok, instalei tudo o que eu acho que preciso, mas o que exatamente é Git? bem, para começar, imagine que você está de volta ao seu ensino fundamental, e a professora tetéia passou uma tarefa que deve ser entregue em uma pasta contendo vários arquivos interdependentes a ser resolvida por você, seu amigo 1 e seu outro amigo 2. Antes de começarem, vocês estarão longe da conclusão da tarefa, que assim ilustraremos: